Linked Questions

3 votes
1 answer
400 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 ...
subbu's user avatar
  • 2,304
2 votes
1 answer
134 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 ...
John Greger's user avatar
2 votes
1 answer
231 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 ...
luyuwuli's user avatar
  • 2,804
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 ...
袁子奕's user avatar
0 votes
0 answers
39 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. ...
jarvisstark's user avatar
549 votes
37 answers
130k 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 ...
110 votes
6 answers
116k 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?
niklasfi's user avatar
  • 2,613
15 votes
1 answer
53k 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?
stevenvh's user avatar
  • 6,856
6 votes
2 answers
10k 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. ...
Jimmy's user avatar
  • 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: ...
Kagaratsch's user avatar
  • 11.9k
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 ...
Milan Ivica's user avatar
7 votes
1 answer
508 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 ...
jtbandes's user avatar
  • 1,422
3 votes
1 answer
379 views

How to import a variable from one notebook to another notebook?

I am a new user of Mathematica. I want to import a variable from notebook-1 to notebook-2 where I am currently using. I have searched for Mathematica repository but unfortunately I could not find an ...
Akbar Samiev's user avatar
0 votes
2 answers
183 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 ...
NoEscape's user avatar
  • 842
3 votes
1 answer
186 views

Setting the context automatically based on section

Suppose I have a task that keeps things organized using contexts, so: ...
ArgentoSapiens's user avatar
3 votes
1 answer
317 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: ...
rob mayoff's user avatar
1 vote
1 answer
252 views

What's wrong with my code for finding primes?

From here I found a fast method to make prime list, the python version works well, but my Mathematica version does not. Obviously ,169 is not a prime number. What's ...
expression's user avatar
  • 5,572
4 votes
0 answers
169 views

Is there a way to check whether two notebooks share the same variables?

When I code in Mathematica, I often re-use code from old notebooks which fulfilled a specific purpose; for example, one testing for soft matches in strings, or one that identifies outliers on a graph ...
Vincent Tjeng's user avatar
1 vote
0 answers
38 views

How to run the newly created notebook "anonymously"?

How to test the autonomy of all calculations on .nb, i.e. run it so that it does not use existing variables from other .nb executables? And if it refers to a variable you did not create yourself to ...
Slepecky Mamut's user avatar