WORKFLOW
Persist Values between Sessions
For Local Use...
Define a persistent value
To define a value that persists between kernel sessions, use PersistentValue:
Use a persistent value
Use a persistent value as you would any symbol:
Binarize[PersistentValue["logo"]]The persistent value is not lost when the kernel is restarted:
PersistentValue["logo"]Remove a persistent value
PersistentValue["logo"]For Use Both on the Desktop and in the Cloud...
Define a persistent value
To define a value that persists between kernel sessions and can be used both on the desktop and in the cloud, put the value in the “Cloud” persistence location:
Use a persistent value
Use a persistent value as you would any symbol. Both desktop and cloud have access to the same persistent value:
Binarize[PersistentValue["logo", "Cloud"]]The persistent value is not lost when the kernel is restarted:
PersistentValue["logo", "Cloud"]Remove a persistent value
PersistentValue["logo", "Cloud"]Related Functions
PersistentValue $PersistencePath Remove Initialize InitializationValue