$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:

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

View the current initialization value:

Properties & Relations  (2)

Initialization values are stored in persistent objects:

List the existing initialization values for $Initialization in all editable persistence locations:

Remove them:

Possible Issues  (1)

Create two initialization values for $Initialization in different locations:

Remove by default removes only the value in the location given by $PersistenceBase:

Remove all values that might exist anywhere in all editable locations given by $PersistencePath:

The default value is still present:

Wolfram Research (2017), $Initialization, Wolfram Language function, https://reference.wolfram.com/language/ref/$Initialization.html.

Text

Wolfram Research (2017), $Initialization, Wolfram Language function, https://reference.wolfram.com/language/ref/$Initialization.html.

CMS

Wolfram Language. 2017. "$Initialization." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$Initialization.html.

APA

Wolfram Language. (2017). $Initialization. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$Initialization.html

BibTeX

@misc{reference.wolfram_2024_$initialization, author="Wolfram Research", title="{$Initialization}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$Initialization.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$initialization, organization={Wolfram Research}, title={$Initialization}, year={2017}, url={https://reference.wolfram.com/language/ref/$Initialization.html}, note=[Accessed: 22-November-2024 ]}