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).
Module:terminal.shortcuts
Module to define and register Terminal IPython shortcuts with prompt_toolkit
Bases: object
Bases: BaseBinding
Bases: BaseBinding
Set up the prompt_toolkit keyboard shortcuts for IPython.
shell (InteractiveShell) – The current IPython shell Instance
skip (List[Binding]) – Bindings to skip.
the keybinding instance for prompt toolkit.
KeyBindings
Reformat code and execute it
Control-P in vi edit mode on readline is history next, unlike default prompt toolkit.
If completer is open this still select previous completion.
Control-N in vi edit mode on readline is history previous, unlike default prompt toolkit.
If completer is open this still select next completion.
Dismiss completion
Reset buffer
Reset search buffer
Suspend to background
Quit application with SIGQUIT
if supported or sys.exit
otherwise.
On platforms that support SIGQUIT, send SIGQUIT to the current process. On other platforms, just exit the process with a message.
Indent buffer
Insert a newline after the cursor indented appropriately.
Fancier version of former newline_with_copy_margin
which should compute the correct indentation of the inserted line. That is to say, indent by 4 extra space after a function definition, class definition, context manager… And dedent by 4 space after pass
, return
, raise ...
.
Open code from input in external editor
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4