New answers tagged

2 votes

Listing most recently modified sections in Notebook?

You can find the section containing a given cell by using the {"CounterValue", "Section"} current value. Leveraging this idea produces: ...
Carl Woll's user avatar
  • 130k
1 vote

Converting Wolfram Language Scripts (.wls) into PDFs

another method, use player :) : take your code as an example: comment can be TextCell with style. ...
AsukaMinato's user avatar
  • 8,930
0 votes

Converting Wolfram Language Scripts (.wls) into PDFs

I found a solution using the low-level cell representation Cell[]. Using Jupyter front-end This code works using the free (as in free-speech) Jupyter front-end with ...
antonio's user avatar
  • 111
1 vote

Converting Wolfram Language Scripts (.wls) into PDFs

Load the script as text. Replace all (* ... *) with cOmMeNt["..."], eventually with proper escaping. Put text into a ...
Kuba hasn't forgotten Monica's user avatar
2 votes

Export Notebook as Text (in 13.3 &14)

I recently found myself in a similar situation where I wanted text-only but structured files generated from my notebooks for source control and revision tracking. I could not find an optimal solution, ...
MarcoB's user avatar
  • 65.8k
2 votes

How to find large cells in a Mathematica notebook?

NotebookCellData gives a slightly nicer formatted table. Looks like a single vector graphics can push 50MB, makes sense to Rasterize. ...
Yaroslav Bulatov's user avatar
4 votes

How to write code to close the current open Notebook document after 10 seconds?

Your task is held and executed asynchronously so once it gets to the Kernel it won't 'remember' which notebook it was sent from. You need to send it with that information: ...
Kuba's user avatar
  • 136k
1 vote

How to find large cells in a Mathematica notebook?

Maybe something like: ...
kglr's user avatar
  • 384k
4 votes

How to write mixed fraction in text cell?

Row[{5, 1/2}] $$5\frac{1}{2}$$ Using \[ImplicitPlus\] to write it in text cell press 5, press esc, press +, press esc, press 1, ...
azerbajdzan's user avatar
  • 9,893
1 vote

How to use the Testing Notebook to test a package without shadowing?

This still seems to be an issue in 2023. I use the following workaround. I load the package I want to test. Instead of using the RunAll button, I highlight all test cells and use shift-Enter. In ...
user95361's user avatar
5 votes

Non-breaking hyphen?

You can directly input the unicode character for the non-breaking hyphen in a cell: \:2011 You can also create an input alias to allow direct input of a unicode non-breaking hyphen. ...
David's user avatar
  • 81

Top 50 recent answers are included