title: How to save all the variables in the current python session?
body: <p>I want to save all the variables in my current python environment. It seems one option is to use the 'pickle' module. However, I don't want to do this for 2 reasons:</p>
  <ol>
  <li>I have to call <code>pickle.dump()</code> for each variable</li>
  <li>When I want to retrieve the variables, I must remember the order in which I saved the variables, and then do a <code>pickle.load()</code> to retrieve each variable.</li>
  </ol>
  <p>I am looking for some command which would save the entire session, so that when I load this saved session, all my variables are restored. Is this possible?</p>
  <p>Edit: I guess I don't mind calling <code>pickle.dump()</code> for each variable that I would like to save, but remembering the exact order in which the variables were saved seems like a big restriction. I want to avoid that.</p>