Important
This documentation covers IPython versions 6.0 and higher. Beginning with version 6.0, IPython stopped supporting compatibility with Python versions lower than 3.3 including all versions of Python 2.7.
If you are looking for an IPython version compatible with Python 2.7, please use the IPython 5.x LTS release and refer to its documentation (LTS is the long term support release).
IPython shortcuts¶
Available shortcuts in an IPython terminal.
Warning
This list is automatically generated, and may not hold all available
shortcuts. In particular, it may depend on the version of prompt_toolkit
installed during the generation of this page.
Single Filtered shortcuts¶
Shortcut |
Filter |
Description |
---|---|---|
c-\ |
Always |
Force exit (with a non-zero return value) |
Multi Filtered shortcuts¶
Shortcut |
Filter |
Description |
---|---|---|
c-m |
(And: Condition, (Not: Condition), (Or: Condition, Condition)) |
When the user presses return, insert a newline or execute the code |
c-n |
(And: Condition, Condition) |
Control-N in vi edit mode on readline is history previous, unlike default prompt toolkit |
c-o |
(And: Condition, Condition) |
insert a newline after the cursor indented appropriately |
c-p |
(And: Condition, Condition) |
Control-P in vi edit mode on readline is history next, unlike default prompt toolkit |