Issue
I want to define a function with multiple lines in it. But ipython seems to be considering a function complete as early as possible.
$ ipython
In [1]: def whatever():
...: a = 1
In [2]:
How do I make ipython work like it used to, like,
$ ipython
In [1]: def whatever():
...: a = 1
...: print(a)
...:
In [2]:
I'm using Python 3.6, iPython --version 7.0.1, and Ubuntu 16.04
Solution
@daniel-roseman is right, I just needed to upgrade from iPython version 7.0.1 to 7.1.1. For me that was running the command
pipenv --update ipython
Answered By - Dave Aaron Smith
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.