2bdenw
Last Updated: February 25, 2016
·
2.088K
· kennu
F8828772ff141a7cb8fe109af7948da1

IPython newlines with ^V^J

If you're having trouble adding newlines in the middle of a multiline code block in IPython, try using Ctrl-V Ctrl-J to insert a linebreak at the cursor. It will not execute the code block like hitting Enter will.

Also, navigating a multiline code block is faster with Escape-B and Escape-F (skip word backward/forward).

If you haven't tried IPython at all yet, it's a nicer command line interface for Python with better command history and line editing features. Just "pip install ipython".

1 Response
Add your response

7967
2042d0bca89dd14e95145519f07e9a84

How did you find this out? What other secrets are hiding?

over 1 year ago ·
Awesome Job

30b33bf6 e70b 11e6 82df 2c73cba3d5b2
Full Stack Software Engineer
·
San Francisco, CA, Chicago, IL
·
Full Time