This is documentation for Mathematica 5, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Documentation / Mathematica / Front End / Menu Commands / Cell Menu / Cell Properties /

Initialization Cell

FilledSmallSquare Initialization Cell makes a cell auto-evaluate whenever the notebook is opened.

FilledSmallSquare When a cell is an initialization cell, a vertical tick mark (|) appears in the cell bracket.

FilledSmallSquare The Initialization Cell command toggles the option InitializationCell between True and False on the selected Cell objects.

FilledSmallSquare The option InitializationCellLoading, set at the notebook level, determines when the initialization cells in a notebook are evaluated.

InitializationCellLoading Rule True evaluates initialization cells when the notebook is opened.

InitializationCellLoading Rule False tells Mathematica not to evaluate initialization cells.

InitializationCellLoading Rule Automatic loads the initialization cells only when you first do an evaluation within the notebook.

FilledSmallSquare The option InitializationCellWarning determines whether you get a dialog box confirming that you want to evaluate the initialization cells, at the time determined by InitializationCellLoading. A dialog box will appear if InitializationCellWarning is set to True at either the notebook or global level. This provides a level of security, because an individual notebook cannot cause initialization cells to be loaded silently, unless InitializationCellWarning is set to False at the global level.

FilledSmallSquare You can evaluate the initialization cells manually at any time by choosing Evaluate Initialization from the Evaluation submenu of the Kernel menu.