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$
2
  • $\begingroup$ You can probably use this: 7198 $\endgroup$
    – Kuba
    Mar 29, 2015 at 14:13
  • 1
    $\begingroup$ Have you considered to use a Package instead of a Notebook? $\endgroup$
    – Murta
    Mar 29, 2015 at 15:51

1 Answer 1

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

$\endgroup$

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