title: How can I save the code written in an IPython session?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/947810/how-to-save-a-python-interactive-session">How to save a Python interactive session?</a>  </p>
  </blockquote>
  
  
  
  <p>Is it possible, and if so, how do I save the code that I have written in an IPython session?</p>
  
  <p>Optimally I would only output the code that runs without errors, but exporting all the code would go a long way as well, I suppose.</p>