Linked Questions

3 votes
1 answer
382 views

How to restrict global variables to within a given notebook? [duplicate]

Possible Duplicate: Is there a way to separate variables between multiple notebooks? I assigned a global variable like a=10; It works in all my notebooks, but ...
  • 2,254
2 votes
1 answer
220 views

Is there a convenient way to localize all variables in a new notebook? [duplicate]

I often digress to test some others’ code when working on my own problems. Usually, I have to check if there are conflict variables. Of course, it is not a wise way. By contrast, all the variables in ...
  • 2,722
2 votes
1 answer
77 views

Make different Mathematica notebooks stop talking to each other [duplicate]

So basically I am working in two completely different notebooks. But, if I define something in one notebook, it will overwrite the same definition in my other document. Somehow these files talk to ...
0 votes
0 answers
40 views

How to create a new notebook without the value defined in a former notebook? [duplicate]

When I try to calculate sth new and create a new notebook, the variables in the former notebook will be a trouble. The only I know is use Clear["*"] or quit the ...
0 votes
0 answers
38 views

How to restrict the use of variables to the notebook? [duplicate]

I am solving two problems simultaneously in which the variable x is defined. To the left of the image, i'm solving shape functions and matrix operations. But to the right i'm solving Green's function. ...
533 votes
37 answers
122k 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 ...
106 votes
6 answers
107k views

How do I clear all user defined symbols?

Is there some way to do this other than going to Evaluation -> Quit kernel and firing a new one up?
  • 2,533
15 votes
1 answer
48k views

What does "Tag Integer is Protected" message mean?

(Newbie question) For every function I define I get this message: When I close and reopen Mathematica, and re-enter the function definition, I don't get the message anymore. What does it mean?
  • 6,698
6 votes
2 answers
9k views

How do I plot a solution of a differential equation?

I am having trouble generating a plot for a solution to my differential equations. I always end up with just blank axes. ...
  • 61
9 votes
1 answer
3k views

Use different kernels for different Notebooks

I know that the command LaunchKernels[] starts up four kernels on my machine: ...
  • 11.7k
5 votes
2 answers
3k views

Forecast Future Stock Prices - Brownian Motion - Again

excuse me, I think I have here a technical problem with Mathematica yesterday I posted the question with the title: Forecast Future Stock Prices - Brownian Motion I am still not very experienced but ...
7 votes
1 answer
486 views

Context "Unique to This Notebook" makes variables black even if they're not defined?

I'm trying to use this technique to keep variables separated between different notebooks. It seems to be working fine, except that variables turn black as soon as they are evaluated — any ideas why ...
  • 1,412
0 votes
2 answers
178 views

How to avoid restart during development? [duplicate]

Possible Duplicate: How do I clear all user defined symbols? During package development things get messed up quite often. (especially when playing with notations) Is there a simple way to reset ...
  • 832
3 votes
1 answer
178 views

Setting the context automatically based on section

Suppose I have a task that keeps things organized using contexts, so: ...
3 votes
1 answer
293 views

automatically add Global` to $ContextPath for all notebooks when using CellContext->Notebook

I have some definitions in my init.m. E.g. my init.m contains this: ...

15 30 50 per page