At present, I do this by manually setting every cell in a notebook to be Initialization cell. There must be a better way! When I finish work one day and re-open the notebook the next day, I want all the cells to be evaluated.

  • $\begingroup$ To answer the implicit Y question, you could also use DumpSave[] to save all the results and Get[] to reload them. You can save all the definitions (of variables and functions) in a whole context "Global`" might be appropriate for some workflows. Or you could work on a project in a context you define. $\endgroup$
    – Michael E2
    Jun 26 at 21:49
  • $\begingroup$ Another option is to use a "Wolfram Language Package" under the File/New/ Package/Script (a .wl file). The default is to use a code cell instead of an Input cell. One downside is that your output isn't preserved after you close the file, but if you're going to re-evaluate anyway, maybe that doesn't matter to you. You can still manually create Input cells and do many things supported in a .nb, including text, Graphics, etc. $\endgroup$
    – jdp
    Jun 27 at 1:06

1 Answer 1


If you want the entire notebook converted to Initialization cells, Ctrl-A the notebook, selecting all the cells and then Ctrl-8 to convert them all to Initialization cells.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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