Sometimes I'll be entering a long statement into ipython
In [4]: def foo():
...: a
...: bery # here's the error
...: long
...: function
...: definition
...: that
...: has
...: some
...: error
...: at
...: the
...: top
...:
And I'd like to be able to fix the error and submit the function but instead my workflow looks like this
In [7]: def foo():
...: a
...: very # 2) FIXED - I want to be able to ENTER from this line
...: # 3) but instead I get a newline
...: long
...: function
...: definition
...: that
...: has
...: some
...: error
...: at
...: the
...: top
...: # 1) I have to start here and scroll all the way to the top
...: # 4) so now I have to scroll all the way down here to ENTER the fixed function
...:
Any advice on how to
- More efficiently navigate to the top of the code that I want to edit
- Be able to submit from a line that is not the end