ipython/ipython — pull request #2476 by minrk (2012-10-09 05:02:33+00:00)
Title: allow %edit <variable> to work when interactively defined

fixes `%edit foo` for interactively defined variables

Effectively handles cases such as:

In [1]: def foo(): return 5
In [2]: %edit foo

Where `%edit foo` turns into `%edit 1` by parsing the `` fake filename.