6 votes

How to generate input cells whose code is determined dynamically?

You should just use With instead of Module, as Carl Woll suggests in the comments: ...
user avatar
6 votes

Ideal workflow for developing and running "pipelines"

I have frequently encountered a need to do the same thing. An example is a complex notebook which loads an image and analyzes it as scientific data. I want to run the same analysis on a large number ...
user avatar
  • 3,943
5 votes

How to determine the current width of the output cell area?

Below is one approach that seems to work, apart from being off by the same 4 printers points as one of the other answers. The key advantage is that it returns the actual size of the current output ...
user avatar
  • 25.4k
5 votes
Accepted

How to convert any string of code to an input cell?

TLDR: FrontEnd will happily accept an input form string wrapped with BoxData: ...
user avatar
  • 133k
4 votes

How to generate input cells whose code is determined dynamically?

This required a bit more trickery than I would like: ...
4 votes
Accepted

Changeable header and footer banners in Slide Show style

If you start with a simple CreateNotebook["SlideShow"], click Blank Slide from the ...
user avatar
  • 4,617
4 votes

Changeable header and footer banners in Slide Show style

You can create a footer using AttachCell (new in Mathematica 12.2): ...
user avatar
4 votes

How to stop opening of cell groups after evaluation of the whole Notebook?

One way to get a Notebook evaluated without side-effects like opening cell groups is do not insert the results of the evaluation into this Notebook: ...
user avatar
4 votes

Ideal workflow for developing and running "pipelines"

Disclaimer: I have faced similar issues as well, but I have not "field-tested" the solution I present below, so I can't speak about its issues and limitations. The idea is the following: We ...
user avatar
  • 25.4k
3 votes
Accepted

Automatically close the parent cell in a grouped set

...
user avatar
  • 4,617
3 votes
Accepted

How to select the outermost CellGroup that contains given cell?

A simple answer is to specify a large enough value for the fourth argument of SelectionMove, which is very unlikely to be exceeded in real life. The timings ...
user avatar
2 votes

Automatic backup on Mathematica

EwanDawson's : NotebookAutoSave paclet claims to autosave every 10 seconds instead of every evaluation. Currently, the 10 second threshold is hard-coded, but perhaps the author is willing to make it ...
user avatar
  • 1,458
2 votes

Mathematica 12 Frontend for Mac: cell grouping messed up upon copy/paste

The bug still thrives in v13.1.0 (at least, on Macs). For the curious, here is an easy way to demonstrate the problem from scratch: just copy the code below in a new Notebook (on a Mac), then follow ...
user avatar
2 votes
Accepted

Cannot find DockedCells with Cells or NotebookFind

Update: a straighforward solution One could use the Initialization option of Cell to collect the required information: ...
user avatar
2 votes
Accepted

What properties make a valid CellID?

It looks like when we specify a positive non-integer value n for CellID, it will be set to ...
user avatar
1 vote
Accepted

How can a Cell be appended to the list of Cells in the Notebook expression?

There is ResourceFunction["AddStyleToNotebook"] which allows to add a new style to the private stylesheet without erasing the existing styles. But ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible