- Each context is specified by a string of the form "name`".
- The elements of $ContextPath are tested in order to try to find a context containing a particular symbol.
- $ContextPath is modified by BeginPackage and EndPackage.
- $ContextPath is a rough analog for Wolfram Language symbols of the "search path" for files in many operating systems.
Examplesopen allclose all
Basic Examples (2)
The symbol Integrate can be found because it is in the "System`" context:
If a symbol with a given name is not found in one of the contexts in $ContextPath, it will be created:
It is created in the context given by $Context:
PackedArrayForm is a command in the Developer` context that can now be used directly:
Properties & Relations (5)
Contexts on $ContextPath are searched in order:
If an input symbol contains context marker (`), $ContextPath is ignored:
Neither does End:
Wolfram Research (1988), $ContextPath, Wolfram Language function, https://reference.wolfram.com/language/ref/$ContextPath.html (updated 2007).
Wolfram Language. 1988. "$ContextPath." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/$ContextPath.html.
Wolfram Language. (1988). $ContextPath. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$ContextPath.html