is a global variable that gives the current context.


$Context
is a global variable that gives the current context.
Details

- Contexts are specified by strings of the form "name`".
- $Context is modified by Begin, BeginPackage, End and EndPackage.
- $Context is a rough analog for Wolfram Language symbols of the current working directory for files in many operating systems.
See Also
Context $ContextPath CellContext $ContextAliases
Function Repository: ReplaceContext FullSymbolName
Tech Notes
Related Guides
Related Workflows
History
Introduced in 1988 (1.0)
Text
Wolfram Research (1988), $Context, Wolfram Language function, https://reference.wolfram.com/language/ref/$Context.html.
CMS
Wolfram Language. 1988. "$Context." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$Context.html.
APA
Wolfram Language. (1988). $Context. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$Context.html
BibTeX
@misc{reference.wolfram_2025_$context, author="Wolfram Research", title="{$Context}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/$Context.html}", note=[Accessed: 07-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_$context, organization={Wolfram Research}, title={$Context}, year={1988}, url={https://reference.wolfram.com/language/ref/$Context.html}, note=[Accessed: 07-August-2025]}