title: How to resume iPython 0.13.2 session with logging
body: <p>I've been using iPython (0.13.2) more frequently lately, and the logging seems like a great feature -- if I could get it to work right.</p>
  
  <p>Currently, I'm able to start and specify a log file either through <code>ipython --logfile ~/path/fake.log</code>, or even in the middle of an iPython session with the %magic command <code>%logstart ~/path/fake.log</code>.</p>
  
  <p>However, I can't seem to resume the session from the logfile, which seems to defeat the purpose in part. I've scoured Google and SO, but none of the recommended solutions here at SO or in the docs seem to work quite right.</p>
  
  <p>I have tried:</p>
  
  <ul>
  <li>from Bash
  
  <ul>
  <li><code>ipython -log ~/path/fake.log</code> (<a href="https://stackoverflow.com/questions/12504951/is-it-possible-to-save-session-in-ipython-like-in-matlab/12505031#12505031">source</a>, result: <code>[TerminalIPythonApp] Unrecognized flag: '-log'</code>)</li>
  <li><code>ipython -logplay ~/path/fake.log</code> (<a href="http://linux.die.net/man/1/ipython" rel="nofollow noreferrer">source</a> and numerous others, result: <code>[TerminalIPythonApp] Unrecognized flag: '-logplay'</code>)</li>
  <li><code>ipython --logfile=~/path/fake.log</code> (<a href="http://ipython.org/ipython-doc/stable/interactive/reference.html#session-logging-and-restoring" rel="nofollow noreferrer">source</a>, result: new log started, variables from previous session undefined)</li>
  </ul></li>
  <li>from iPython
  
  <ul>
  <li><code>%logstart ~/path/fake.log append</code> (<a href="http://ipython.org/ipython-doc/stable/interactive/reference.html#session-logging-and-restoring" rel="nofollow noreferrer">source</a>, result: old log continued but not loaded, variables from previous session undefined)</li>
  </ul></li>
  </ul>
  
  <p>Two that are partially working (in that they try to import the logfile) but don't seem to be intended for this purpose are:</p>
  
  <ul>
  <li>from bash: <code>ipython -i ~/path/fake.log</code> (<a href="https://stackoverflow.com/questions/947810/how-to-save-a-python-interactive-session#comment18690664_947846">source</a>, result: if there were no errors in the session imports and works. If there were any errors, not imported and variables still unavailable. Logging not resumed.).</li>
  <li>from ipython: <code>%run ~/path/fake.log</code> (no source, just guessed and tried. Result: same as above. Runs the file if there were no errors and variables are GTG. If there were errors, does not work. Does not resume logging.)</li>
  </ul>
  
  <p>Is there any way in iPython 0.13.2 to resume a session that effectively "starts where you left off"? Thanks for any help you can provide.</p>