Y
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
benatkin
4843 days ago
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.
link
philipbjorge
4843 days ago
This is awesome! I really should learn iPython one of these days...
link