This question already has an answer here:

I have the following problem (I guess a very naive one): I work with some data and make a statistical analysis in Mathematica. I do it over several days and each time I open the file, I have to go through all previous lines of calculations, in order that all previously defined variables and data sets are uploaded into Mathematica's memory.

My question is, does there exist a command so that each time I open the file, all defined previously variables are put into the working memory automatically.


marked as duplicate by Teake Nutma, Karsten 7., Simon Woods, eldo, Yves Klett Sep 11 '14 at 16:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


This most likely will be closed as duplicate, as pointed out by @Teake_Nutma, this has been answered already here. In the meantime, the trick basically is:

To save:

DumpSave["state.mx", "Global`"]

To load:


Not the answer you're looking for? Browse other questions tagged or ask your own question.