cosmin/IClojure — Issue #3: open $EDITOR with %edit-like command, returning the contents to the repl
Author: manniche
Created: 2012-01-31 20:35:53+00:00
State: open

For longer ipython-sessions, I regularly use the %edit functionality, which opens an editor (defined in $EDITOR) and upon closing the editor, returns the contents in a string to the interactive shell.

With python, the functionality is really nice when needing to insert custom classes in your ipython session, those tabs are much more easily managed in a sane editor than in the shell. The same is the case for me when trying to keep track of the parentheses.

See http://ipython.org/ipython-doc/rel-0.12/interactive/tips.html#lightweight-version-control for reference.