ExcludedContexts

ExcludedContexts

is an option for FullDefinition, Manipulate and related symbols that gives contexts whose symbols will not have the definitions recursively saved.

Details

  • Functions such as FullDefinition, Manipulate, etc. that report or store the full set of definitions associated with a symbol recursively pull in the definitions of symbols that appear on the right-hand side of each definition. ExcludedContexts limits the recursive collection of definitions by ignoring symbols in the contexts specified.
  • Common settings include:
  • Automaticexclude contexts that are considered internal to the system
    {}exclude no contexts
    "Context`"exclude the specified context only
    "Context`*"exclude the specified context and all its subcontexts
    {spec1,spec2,}exclude any context matching one of the speci
  • ExcludedContexts takes precedence over IncludedContexts. »
  • A context can be specified using string patterns in the same way as in Contexts[].

Examples

open allclose all

Basic Examples  (1)

Save the definition of x and any symbols that appear on the right-hand side of its values:

With the default setting, Automatic, the literal value of $TimeZone is omitted:

Scope  (2)

Exclude the contexts "System`" and "Foo`" only:

Exclude the contexts "System`" as well as "Foo`" and its subcontexts:

Properties & Relations  (1)

ExcludedContexts overrides IncludedContexts:

Compare with:

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

Text

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

CMS

Wolfram Language. 2021. "ExcludedContexts." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExcludedContexts.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_excludedcontexts, author="Wolfram Research", title="{ExcludedContexts}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ExcludedContexts.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_excludedcontexts, organization={Wolfram Research}, title={ExcludedContexts}, year={2021}, url={https://reference.wolfram.com/language/ref/ExcludedContexts.html}, note=[Accessed: 21-November-2024 ]}