We can remove all symbols in a particular context by using Remove["context`*"]
. But is it possible to remove "context`"
itself from the system so that it will no longer be listed in Contexts[]
?
相关问题
- Puzzled by Function body evaluation
- how to overload Times and Plus for matrix multipli
- AOSP Build TARGET_PRODUCT fails
- Modifying a Graphics3D object generated by Paramet
- Mathematica “AppendTo” function problem
相关文章
- histogram without vertical lines in Mathematica
- Entering data with Input[] in mathematica
- Using Fold to calculate the result of linear recur
- How should I write a function to be used in Apply
- NMinimize eats all memory b/c of unnecessary symbo
- Mathematica: set default value for argument to non
- how does mathematica determine which rule to use f
- Animate the movement of a point along the plot of
As far as I can tell (a guess), a context is automatically removed from
Contexts[]
once it becomes empty (has no symbols). At least, this happens in my tests. Here is one:This may also explain why calling
Contexts[]
takes a sizable fraction of a second - the system must check for every context whether or not it is empty. Anyways, the answer to your question seems simple - remove all symbols and the context will be removed fromContexts[]
. This also works for contexts loaded by the system - you may try some (XML'
for example), although needless to say this is not a good practice, to say the least.