Hacker News new | ask | show | jobs
by lbolla 4843 days ago
IPython has this feature baked in the magic %ed command [1].

[1]: http://ipython.org/ipython-doc/dev/config/editors.html

2 comments

Yes, and to edit the last thing you typed, you can run %ed _. When you exit %ed it runs the code and then returns the code as a string.
This is awesome! I really should learn iPython one of these days...