WOLFRAM

gives a list of all contexts.

Contexts["string"]

gives a list of the contexts that match the string.

Details and Options

  • Contexts allows abbreviated string patterns containing the following metacharacters:
  • *zero or more characters
    @one or more characters, excluding uppercase letters
    \\*, etc.literal *, etc.
  • Contexts["string"] includes any context aliases matching "string" by default. With ResolveContextAliasesFalse, only non-aliased matching contexts will be returned. »

Examples

open allclose all

Basic Examples  (1)Summary of the most common use cases

Give all contexts starting with "As":

Out[1]=1

Options  (1)Common values & functionality for each option

ResolveContextAliases  (1)

Contexts resolves aliases by default:

Out[1]=1
Out[1]=1

Use the ResolveContextAliases option to prevent alias resolution:

Out[2]=2
Wolfram Research (1991), Contexts, Wolfram Language function, https://reference.wolfram.com/language/ref/Contexts.html (updated 2021).
Wolfram Research (1991), Contexts, Wolfram Language function, https://reference.wolfram.com/language/ref/Contexts.html (updated 2021).

Text

Wolfram Research (1991), Contexts, Wolfram Language function, https://reference.wolfram.com/language/ref/Contexts.html (updated 2021).

Wolfram Research (1991), Contexts, Wolfram Language function, https://reference.wolfram.com/language/ref/Contexts.html (updated 2021).

CMS

Wolfram Language. 1991. "Contexts." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/Contexts.html.

Wolfram Language. 1991. "Contexts." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/Contexts.html.

APA

Wolfram Language. (1991). Contexts. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Contexts.html

Wolfram Language. (1991). Contexts. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Contexts.html

BibTeX

@misc{reference.wolfram_2025_contexts, author="Wolfram Research", title="{Contexts}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Contexts.html}", note=[Accessed: 16-April-2025 ]}

@misc{reference.wolfram_2025_contexts, author="Wolfram Research", title="{Contexts}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/Contexts.html}", note=[Accessed: 16-April-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_contexts, organization={Wolfram Research}, title={Contexts}, year={2021}, url={https://reference.wolfram.com/language/ref/Contexts.html}, note=[Accessed: 16-April-2025 ]}

@online{reference.wolfram_2025_contexts, organization={Wolfram Research}, title={Contexts}, year={2021}, url={https://reference.wolfram.com/language/ref/Contexts.html}, note=[Accessed: 16-April-2025 ]}