In IPython (7.3.0), I can edit a multiline code block:
In [1]: def funtcion(a, b):
...: return a + b
...:
I then realize that I've made a typo, which I want to correct (| marks the location of the cursor):
<press up arrow, then edit>
In [2]: def funct|ion(a, b):
...: return a + b
...:
I want to execute that:
<press enter>
In [2]: def funct
...: |ion(a, b):
...: return a + b
...:
...which doesn't really do what I want.
Is there a way to force IPython to execute the current cell?