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.
Currently, I'm able to start and specify a log file either through ipython --logfile ~/path/fake.log
, or even in the middle of an iPython session with the %magic command %logstart ~/path/fake.log
.
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.
I have tried:
- from Bash
ipython -log ~/path/fake.log
(source, result:[TerminalIPythonApp] Unrecognized flag: '-log'
)ipython -logplay ~/path/fake.log
(source and numerous others, result:[TerminalIPythonApp] Unrecognized flag: '-logplay'
)ipython --logfile=~/path/fake.log
(source, result: new log started, variables from previous session undefined)
- from iPython
%logstart ~/path/fake.log append
(source, result: old log continued but not loaded, variables from previous session undefined)
Two that are partially working (in that they try to import the logfile) but don't seem to be intended for this purpose are:
- from bash:
ipython -i ~/path/fake.log
(source, 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.). - from ipython:
%run ~/path/fake.log
(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.)
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.