I want to configure this one notebook (let's call it X) so that its initialization cells get automatically evaluated when X is first opened1.

To this end, I have applied the settings shown below to X:

InitializationCellEvaluation -> True
InitializationCellWarning -> False

Still, I get warned about X's initialization cells when I open it.

I understand that one way to do what I want to do entails disabling a "global security option", like so:

SetOptions[$FrontEnd, GlobalInitializationCellWarning -> False]

Nevertheless, it seems to me a bit excessive to reduce Mathematica's security globally just so that I can enable automatic initialization cell evaluation in one notebook.

Therefore, I'm looking for more limited ways to achieve the same thing.

(E.g. some way to invoke Mathematica that disables GlobalInitializationCellWarning just for that session.)

FWIW, I'm using Linux x86 (64-bit).

1 This probably should go without saying: the automatic evaluation of the initialization cells should happen even if the kernel is not yet running; IOW, the rule I want followed at this notebook's startup is: "If the kernel is not yet running, start it; then, evaluate all the initialization cells". If this is not possible at all, then the rest of my post is pretty much moot.

  • 1
    $\begingroup$ I think Karsten comment is the answer: mathematica.stackexchange.com/q/115493/5478 $\endgroup$ – Kuba Mar 22 '17 at 13:40
  • 2
    $\begingroup$ is SetOptions[$FrontEndSession, GlobalInitializationCellWarning -> False] enough? $\endgroup$ – Kuba Mar 22 '17 at 14:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.