$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.

Examples

Basic Examples  (1)

Give the current context. The default is "Global`":

New symbols created will have this context by default:

Wolfram Research (1988), $Context, Wolfram Language function, https://reference.wolfram.com/language/ref/$Context.html.

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_2024_$context, author="Wolfram Research", title="{$Context}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/$Context.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$context, organization={Wolfram Research}, title={$Context}, year={1988}, url={https://reference.wolfram.com/language/ref/$Context.html}, note=[Accessed: 22-November-2024 ]}