Initialize
✖
Initialize
initializes the symbol sym from persistent values on the default persistence path.
initializes the symbol sym from persistent values on the persistence path {loc1,…}.
Details and Options

- The following option can be given:
-
MergingFunction Automatic the function applied to the list of values found - Initialize[All] is equivalent to Initialize["*"].
- Initialize[spec] is equivalent to Initialize[spec,$PersistencePath].
- A persistence location is given as PersistenceLocation["type"] or "type".
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Scope (1)Survey of the scope of standard use cases
Options (1)Common values & functionality for each option
MergingFunction (1)
Establish a default value and merging function for an initialization value:

https://wolfram.com/xid/0wgl9oy-zjooew
Add an initialization value at the front end persistence location:

https://wolfram.com/xid/0wgl9oy-dbwv0p
The resulting initialization value now uses the default merging function:

https://wolfram.com/xid/0wgl9oy-66jqft

You can override the default merging function to use for an initialization:

https://wolfram.com/xid/0wgl9oy-65ck2l

Properties & Relations (1)Properties of the function, and connections to other functions
Set an initialization value for a variable persisting for the current front end session:

https://wolfram.com/xid/0wgl9oy-d23su2


https://wolfram.com/xid/0wgl9oy-3qwbn4
Each newly started kernel will automatically invoke Initialize for all variables:

https://wolfram.com/xid/0wgl9oy-zgtf1f

After quitting and restarting the front end, the initialization value is gone:

https://wolfram.com/xid/0wgl9oy-yjq5m3

Wolfram Research (2017), Initialize, Wolfram Language function, https://reference.wolfram.com/language/ref/Initialize.html.
Text
Wolfram Research (2017), Initialize, Wolfram Language function, https://reference.wolfram.com/language/ref/Initialize.html.
Wolfram Research (2017), Initialize, Wolfram Language function, https://reference.wolfram.com/language/ref/Initialize.html.
CMS
Wolfram Language. 2017. "Initialize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Initialize.html.
Wolfram Language. 2017. "Initialize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Initialize.html.
APA
Wolfram Language. (2017). Initialize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Initialize.html
Wolfram Language. (2017). Initialize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Initialize.html
BibTeX
@misc{reference.wolfram_2025_initialize, author="Wolfram Research", title="{Initialize}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/Initialize.html}", note=[Accessed: 01-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_initialize, organization={Wolfram Research}, title={Initialize}, year={2017}, url={https://reference.wolfram.com/language/ref/Initialize.html}, note=[Accessed: 01-April-2025
]}