1
$\begingroup$

How might I automatically execute a notebook script on open?

For example I would like to a notebook to automatically execute it's cells.

$\endgroup$
  • $\begingroup$ You can probably use this: 7198 $\endgroup$ – Kuba Mar 29 '15 at 14:13
  • 1
    $\begingroup$ Have you considered to use a Package instead of a Notebook? $\endgroup$ – Murta Mar 29 '15 at 15:51
0
$\begingroup$

Yes you can do it using the option IntializationCell, moreover there are complementary options for controlling its behavior.

Here is the documentation on how to achieve it https://reference.wolfram.com/language/ref/menuitem/InitializationCell.html

| improve this answer | |
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.