LocalSymbol

LocalSymbol["name"]

represents a symbol whose value is persistently stored in the local file system.

LocalSymbol[obj]

represents a persistent symbol corresponding to the local object obj.

Details

  • Values can be assigned using LocalSymbol[name]=val or LocalSymbol[name]:=val.
  • LocalSymbol[name] evaluates to give the value assigned for LocalSymbol[name].
  • Values of local symbols are stored in local objects.
  • LocalSymbol["name"] by default references a local object with the specified name within the directory $LocalSymbolBase.
  • LocalSymbol["name",base] references a local object relative to the specified base.
  • Local symbols can be shared between users if appropriate permissions are set on the underlying file system objects.
  • In LocalSymbol["name"], "name" can be any string.
  • LocalSymbol[File["path"]] and LocalSymbol[relpath,File["path"]] are also supported.
  • Local symbols can be removed with Remove.

Examples

open allclose all

Basic Examples  (1)

Assign a value to a local symbol:

In[1]:=
Click for copyable input

Retrieve the value:

In[2]:=
Click for copyable input
Out[2]=

Scope  (4)

Generalizations & Extensions  (3)

Applications  (1)

Properties & Relations  (3)

Possible Issues  (1)

See Also

LocalObject  $LocalSymbolBase  LocalObjects  Symbol  WolframLanguageData  CloudSymbol  Remove

Introduced in 2015
(10.2)