How can I start an evaluation of the initialization cells when a notebook is opened?
Should I use FrontEndExecute[]
in some way?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
FrontEndTokenExecute["EvaluateInitialization"]
but note that even if you make thisDynamic
you will still need to enableDynamic
for that notebook before it will work. $\endgroup$NotebookDynamicExpression
is an option. Please read the documentation. This should not be in a cell as obviously that cell will be evaluated every time you run the initialization, which will re-run the initialization, etc. $\endgroup$