$Initialization

$Initialization

is a symbol whose value, if any, is evaluated with ReleaseHold[$Initialization] at the start of a Wolfram Language session.

Details

Examples

open allclose all

Basic Examples  (1)

Set a value to be evaluated every time the kernel starts:

In[1]:=
Click for copyable input
Out[1]=

Set a value that persists only during a front end session:

In[2]:=
Click for copyable input
Out[2]=

View the current initialization value:

In[3]:=
Click for copyable input
Out[3]=

Properties & Relations  (2)

Possible Issues  (1)

See Also

InitializationValue  Initialize  $PreInitialization  Once

Introduced in 2017
(11.2)