FullDefinition,Manipulateおよび関連シンボルのオプションで,定義が再帰的には保存されないシンボルのコンテキストを与える.
ExcludedContexts
FullDefinition,Manipulateおよび関連シンボルのオプションで,定義が再帰的には保存されないシンボルのコンテキストを与える.
詳細
- ンボルに関連付けられた定義の完全セットを報告または保存するFullDefinitionやManipulate等の関数は,各定義の右辺に現れるシンボルの定義を再帰的に取得する.ExcludedContextsは,指定されたコンテキストにあるシンボルを無視することで,再帰的な定義の収集を制限する.
- 以下は,よく使われる設定である.
-
Automatic システムにとって内部的であるとみなされるコンテキストを除外する {} どのコンテキストも除外しない "Context`" 指定されたコンテキストだけを除外する "Context`*" 指定されたコンテキストとそのすべてのサブコンテキストを除外する {spec1,spec2,…} speciのいずれかにマッチする任意のコンテキストを除外する - ExcludedContextsはIncludedContextsより優先順位が高い. »
- コンテキストは,Contexts[]におけるのと同じような文字列パターンを使って指定できる.
例題
すべて開く すべて閉じる例 (1)
スコープ (2)
コンテキスト"System`"と"Foo`"だけを除外する:
x := {Foo`bar, Foo`Private`bar, $TimeZone}
Foo`bar := 5
Foo`Private`bar := 1FullDefinition[x, ExcludedContexts -> {"System`", "Foo`"}]コンテキスト"System`"に加えてコンテキスト"Foo`"とそのサブコンテキストを除外する:
x := {Foo`bar, Foo`Private`bar, $TimeZone}
Foo`bar := 5
Foo`Private`bar := 1FullDefinition[x, ExcludedContexts -> {"System`", "Foo`*"}]特性と関係 (1)
ExcludedContextsはIncludedContextsを無効にする:
c`x := $ProcessIDDynamic[c`x, SaveDefinitions -> True, IncludedContexts -> {"System`", "c`"}, ExcludedContexts -> {"System`"}]//ToBoxesDynamic[c`x, SaveDefinitions -> True, IncludedContexts -> {"System`", "c`"}, ExcludedContexts -> {}]//ToBoxes関連するガイド
テキスト
Wolfram Research (2021), ExcludedContexts, Wolfram言語関数, 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_2026_excludedcontexts, author="Wolfram Research", title="{ExcludedContexts}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ExcludedContexts.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_excludedcontexts, organization={Wolfram Research}, title={ExcludedContexts}, year={2021}, url={https://reference.wolfram.com/language/ref/ExcludedContexts.html}, note=[Accessed: 11-September-2026]}