This is a selection of examples from the complete
'How to' screencast »
To create an initialization cell, select the cell bracket of the cell containing your initialization code and choose .
The cell bracket will now include a short vertical tick mark:
After saving and reopening your notebook, when you evaluate any cell in the notebook you will be asked if you want to automatically evaluate all the initialization cells in the notebook.
You can also create initialization cells by using the "Code" cell style ( or
![DynamicBox[ToBoxes[If[$OperatingSystem === MacOSX, Cmd, Alt], StandardForm], ImageSizeCache -> {30., {1., 10.}}]+8 DynamicBox[ToBoxes[If[$OperatingSystem === MacOSX, Cmd, Alt], StandardForm], ImageSizeCache -> {30., {1., 10.}}]+8](Files/WorkWithInitializationCells.zh/1.gif)
):