Issue
I am reading the book Python Data Science Handbook by Jake VanderPlas. In the first chapter a multi line input in ipython is illustrated:
Can anybody please tell me, how to do that? I know how to write a block before executing it in Jupyter Notebook, but in the ipython shell I don't no how to do it. Thanks for your help!
Solution
ctrl+o
If you type ctrl+o, you should be able to add additional lines to the input to run them simultaneously.
If that doesn't work, as a workaround, you can paste multiple lines after copying them from elsewhere, or you can press enter on a line with a semicolon or unclosed parentheses. IPython will automatically give you another line to finish your statement rather than running and instantly hitting a syntax error.
Answered By - AreToo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.