For questions about persistence, i.e., storing variable values or function definitions beyond the lifetime of individual Mathematica sessions.

learn more… | top users | synonyms

42
votes
5answers
20k 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?
39
votes
4answers
5k views

Saving data inside a notebook so that I don't have to run it again?

Piggybacking on this, I am somehow not fully convinced that I can't save data generated by a calculation in a mathematica file so that when I re-launch said file, I wouldn't have to run my ...
38
votes
3answers
3k views

Saving Mathematica kernel state?

If I save a notebook, I only save what I see. That is, if I close Mathematica and reopen the notebook later, all previous calculations are lost, except for those things I've output. Now I know that ...
7
votes
4answers
257 views

Are persistent variable values after the kernel is stopped possible?

Is there a way to make values of variables persistent even after the kernel is stopped? Example, if I were to set up a list for which I append new list items (such as a check ledger, as a basic ...
5
votes
1answer
210 views

DynamicModule inconsistent behavior; was: DynamicModule persistent UI changes

Update: I'll restate the question in hopefully more terse and clearer terms. To illustrate the issue, run this and save the resulting notebook: ...
4
votes
3answers
144 views

Save associations to a file and reload

I have many (say 2 for now) associations that I want to save to a file ...
4
votes
1answer
126 views

How to preserve In/Out tags like what they did in documentation files

Every evaluation generates a pair of In[n]/Out[n] signs tagged before actual input and output. Like the following: If I save the file, close it and re-open it, that In[n]/Out[n] signs will ...
3
votes
3answers
171 views

Making large calculation results persistent

Very often, I need to do same calculations under different parameters for comparing the results. Every calculation may generate a large data set; for example, the calculation result of ...
3
votes
0answers
78 views
2
votes
2answers
129 views

How to store an InterpolatingFunction? [duplicate]

Assume I have obtained an InterpolatingFunction, say, as the result of solving of a differential equation, say, this one: ...
0
votes
0answers
41 views

How can I “save” a function? [duplicate]

If I create a function, for example: ...