IPython 5.0 and key bindings in console
问题 The new release of IPython does not depend any more on readline but uses the pure Python library prompt-toolkit , solving maintenance problems on Apple's and Windows' systems. A new feature is the ability to edit a multi-line code block, using the cursor keys to move freely in the code block — with this power it comes, at least for me, a problem: because a ret inserts a new line in your code, to pass the whole block to the interpreter you have to use the shortcut alt + ret or possibly the