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 |
On platforms that support SIGQUIT, send SIGQUIT to the current process |
Multi Filtered shortcuts¶
Shortcut |
Filter |
Description |
---|---|---|
c-_ |
(And: Condition, Condition, Condition) |
Incremental undo |
c-a |
(And: Condition, Condition, Condition) |
Move to the start of the current line |
c-b |
(And: Condition, Condition, Condition) |
Move back a character |
c-k |
(And: Condition, Condition, Condition) |
Kill the text from the cursor to the end of the line |
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 |
c-w |
(And: Condition, Condition, Condition) |
Kills the word before point, using “not a letter nor a digit” as a word boundary |
c-x c-e |
(And: Condition, Condition, Condition) |
Invoke an editor on the current command line, and accept the result |
c-x e |
(And: Condition, Condition, Condition) |
Invoke an editor on the current command line, and accept the result |
c-y |
(And: Condition, Condition, Condition) |
Paste before cursor |
escape . |
(And: Condition, Condition, Condition) |
Like |
escape b |
(And: Condition, Condition, Condition) |
Move back to the start of the current or previous word |
escape c |
(And: Condition, Condition, Condition) |
Capitalize the current (or following) word |
escape d |
(And: Condition, Condition, Condition) |
Kill from point to the end of the current word, or if between words, to the end of the next word |
escape h |
(And: Condition, Condition, Condition) |
Kills the word before point, using “not a letter nor a digit” as a word boundary |
escape l |
(And: Condition, Condition, Condition) |
Lowercase the current (or following) word |
escape u |
(And: Condition, Condition, Condition) |
Uppercase the current (or following) word |
escape y |
(And: Condition, Condition, Condition) |
Rotate the kill ring, and yank the new top |