gives the default list of persistence locations at which to look for values assigned to PersistentSymbol objects.
$PersistencePath
gives the default list of persistence locations at which to look for values assigned to PersistentSymbol objects.
Details
- The value of $PersistencePath is a list of persistence locations.
- A persistence location is given as PersistenceLocation["type"] or "type".
- The initial setting of $PersistencePath is typically {"KernelSession","FrontEndSession","Local","LocalShared","Installation"}.
- PersistentSymbol["name"] is equivalent to PersistentSymbol["name",$PersistencePath].
Examples
open all close allBasic Examples (1)
Properties & Relations (1)
Create a complement of persistent symbols with key "v" at various locations:
PersistentSymbol["v", "FrontEndSession"] = 1;
PersistentSymbol["v", "KernelSession"] = 2;
PersistentSymbol["v", "Local"] = 3;
PersistentSymbol["v", "Cloud"] = 4;Persistent values are by default searched on all locations given in $PersistencePath:
$PersistencePathThe first value found is returned:
PersistentSymbol["v"]With MergingFunction->Identity, all values found are returned in a list:
PersistentSymbol["v", MergingFunction -> Identity]Specify an explicit list of locations to search for values:
PersistentSymbol["v", {"KernelSession", "Cloud"}, MergingFunction -> Identity]Related Guides
Related Workflows
- Add the Cloud to the Persistence Search Path
History
Text
Wolfram Research (2017), $PersistencePath, Wolfram Language function, https://reference.wolfram.com/language/ref/$PersistencePath.html.
CMS
Wolfram Language. 2017. "$PersistencePath." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$PersistencePath.html.
APA
Wolfram Language. (2017). $PersistencePath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$PersistencePath.html
BibTeX
@misc{reference.wolfram_2026_$persistencepath, author="Wolfram Research", title="{$PersistencePath}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/$PersistencePath.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$persistencepath, organization={Wolfram Research}, title={$PersistencePath}, year={2017}, url={https://reference.wolfram.com/language/ref/$PersistencePath.html}, note=[Accessed: 13-June-2026]}