Context

Context[]

gives the current context.

Context[symbol]

gives the context in which a symbol appears.

Context["symbol"]

gives the context in which the symbol named "symbol" appears if it exists.

Details

  • The current context is the value of $Context.

Examples

open allclose all

Basic Examples  (2)

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

If a new symbol is created, it will have this context:

Give the context of an existing symbol:

Scope  (1)

Get the context of a symbol if it exists:

Create the symbol and then find its context:

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-December-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-December-2024 ]}