InitializationObjects

InitializationObjects[]

gives the list of all persistent initialization objects in all locations in $PersistencePath.

InitializationObjects["patt"]

gives all persistent initialization objects for symbols matching the string pattern "patt".

InitializationObjects["patt",loc]

gives all matching persistent initialization objects in the persistence location loc.

InitializationObjects["patt",{loc1,}]

gives all matching persistent initialization objects in all the loci.

Details and Options

  • InitializationObjects has the option EvaluationEnvironment, which specifies for which evaluation environment initialization objects should be given. The default setting is EvaluationEnvironment:>$EvaluationEnvironment.
  • In InitializationObjects["patt",loc], possible forms for the persistence location loc include:
  • PersistenceLocation["type"]"Local", "Cloud", "FrontEndSession", etc. locations
    "type"equivalent to PersistenceLocation["type"]
    PersistenceLocation["type","base"]location with a particular base (directory etc.)
    "type""base"equivalent to PersistenceLocation["type","base"]
  • Supported location types include:
  • "KernelSession"current invocation of the Wolfram Language kernel
    "FrontEndSession"current invocation of the Wolfram Notebook front end
    "Notebook"the notebook in which the current evaluation is being done
    "ServerSession"persistence for requests on a single web server
    "CookieManaged"persistence based on a Wolfram browser cookie
    "Local"local to a computer, based on user home directory
    "LocalShared"local to a computer, based on $BaseDirectory
    "Cloud"in the cloud defined by the current $CloudBase
    "Installation"installation defaults
  • InitializationObjects[All,loc] gives all objects in the location or locations loc.

Examples

open allclose all

Basic Examples  (1)

List the existing initialization values in all editable persistence locations:

Scope  (2)

List all initializations in a particular persistence location:

List all initializations for a particular symbol in all persistence locations on $PersistencePath:

Options  (1)

EvaluationEnvironment  (1)

List all initializations defined for subkernels:

Applications  (1)

List the existing initialization values in all editable persistence locations:

Remove them:

Wolfram Research (2017), InitializationObjects, Wolfram Language function, https://reference.wolfram.com/language/ref/InitializationObjects.html (updated 2021).

Text

Wolfram Research (2017), InitializationObjects, Wolfram Language function, https://reference.wolfram.com/language/ref/InitializationObjects.html (updated 2021).

CMS

Wolfram Language. 2017. "InitializationObjects." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/InitializationObjects.html.

APA

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

BibTeX

@misc{reference.wolfram_2023_initializationobjects, author="Wolfram Research", title="{InitializationObjects}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/InitializationObjects.html}", note=[Accessed: 28-September-2023 ]}

BibLaTeX

@online{reference.wolfram_2023_initializationobjects, organization={Wolfram Research}, title={InitializationObjects}, year={2021}, url={https://reference.wolfram.com/language/ref/InitializationObjects.html}, note=[Accessed: 28-September-2023 ]}