Linked Questions
13 questions linked to/from Where does a package have to be loaded?
7
votes
1answer
190 views
How does Context work? [duplicate]
I thought when we type a symbol without specifying its Context, it will search all the Context in ...
478
votes
37answers
109k views
What are the most common pitfalls awaiting new users?
As you may already know, Mathematica is a wonderful piece of software.
However, it has a few characteristics that tend to confuse new (and sometimes not-so-new) users. That can be clearly seen from ...
123
votes
9answers
25k views
Creating Mathematica packages
I'm building a package to help me write packages and their documentation. In this post I explained how to make a package and its documentation. In the answer I provided I describe how to build a very ...
40
votes
7answers
1k views
How symbol lookup actually works
Bug introduced in V6 and fixed in V11.3
The behavior indeed changed but now the documentation is clear about it.
This code is inconsistent with the description from Power Programming with ...
36
votes
4answers
1k views
What are the most common (usual) ways to make palettes with non-trivial functionality?
What are the best (most robust and most convenient) ways to create palettes that can be installed permanently (using Palettes -> Install Palette...) and are safe ...
9
votes
2answers
261 views
FullForm with context for each symbol?
FullForm strips the context for any symbol that can be found on the Append[$ContextPath, $Context]: ...
12
votes
1answer
489 views
How to automatically do a computation, Quit[], restart and do a new computation
Related questions have been asked before (eg Where does a package have to be loaded?, https://stackoverflow.com/questions/6152023/quit-kernel-in-mathematica-by-a-command-not-using-evaluation-menu, ...
6
votes
1answer
600 views
4
votes
1answer
189 views
Context inside Do[…]-loop
Consider the following code:
Begin["mycontext`"];
myvar = 7;
Print[Context[]];
Print[Context[myvar]];
End[];
with the output
mycontext`
mycontext`
Now ...
2
votes
1answer
154 views
Why is my variable Lambda defined but not the others?
I would like to understand why in the following code, my variable Λ is recognized by the system but not n.
In fact for me ...
5
votes
1answer
69 views
how to do an idiomatic qualified import in WL?
I want to import a package in a way that requires me to use the long names for package symbols, just as if I had created the context on the fly. What is the idiomatic way to do this?
2
votes
1answer
82 views
$MessageList inside and outside Block[]
Why does
1/0
$MessageList
ComplexInfinity
whereas
Block[{},
1/0;
$MessageList
]
<...
1
vote
0answers
51 views
Begin[] again (V12.1)
Some questions related to $Context and $ContextPath have already been asked and answered, but I still cannot fully grasp the ...