18

I am writing a bash script to run a bunch of Mathematica .nb files serially. So I thought I'd convert my Mathematica cells into initialization cells. However, I notice that the initialization cell isn't run on start up unless I evaluate it using Shift + Enter or Command + Enter.

Is it not an initialization cell that I am looking for?

Steps I took to make my cell an initialization cell:

  1. Selected the cell with mouse click
  2. Cell > Cell properties > Initialization cell

Edit

I just added InitializationCellEvaluation -> True as the first line of my file. However, how should I make this evaluatable?

Verbeia
  • 34,233
  • 9
  • 109
  • 224
dearN
  • 5,341
  • 3
  • 35
  • 74

1 Answers1

17

I think I found it but I'd be more than happy to look at other alternatives if any provided:

  1. Shift + Ctrl + O to open Options > Notebook options > Evaluation options > Global preferences from the drop down menu at the top

  2. Change InitializationCellEvaluation to True and InitializationCellWarning to False

The next time the .nb file is launched, the initialization cell is run.

Verbeia
  • 34,233
  • 9
  • 109
  • 224
dearN
  • 5,341
  • 3
  • 35
  • 74