Is there an easy way to select all initialization cells (and only those) in a Mathematica notebook?
My method is to define a special style in stylesheet for initialization cells. Here is my definition:
Then you can use alt+i to insert an initialization cell / convert an existing cell to
|show 18 more comments|
Here is a method that can be run on existing notebooks, but has some drawbacks.
It leverages the Evaluate Initialization Cells option by redefining
First, we have a function that will set the
The drawbacks are:
Here are a couple of V9 approaches that use
The first solution achieves the goal mentioned in a comment: How to copy all the initialization cells.
The cells may be pasted in another notebook. The
This creates a palette that allows you to mover a slider to select each initialization cell in turn. It won't select all of them as asked for, but one can locate them (which sometime I want to do).