Is there an easy way to select all initialization cells (and only those) in a Mathematica notebook?
Tell me more
×
Mathematica Stack Exchange is a question and answer site for
users of Mathematica. It's 100% free, no registration required.
|
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 |
|||||||||||||||||
|
|
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
Then, change
Finally, change
The drawbacks are:
|
|||||||||
|
FrontEndExecute[FrontEndToken["EvaluateInitialization"]]. – dws Aug 8 '12 at 16:54