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.auto_match

Utilities function for keybinding with prompt toolkit.

This will be bound to specific key press and filter modes, like whether we are in edit mode, and whether the completer is open.

12 Functions

IPython.terminal.shortcuts.auto_match.parenthesis(event: KeyPressEvent)

Auto-close parenthesis

IPython.terminal.shortcuts.auto_match.brackets(event: KeyPressEvent)

Auto-close brackets

IPython.terminal.shortcuts.auto_match.braces(event: KeyPressEvent)

Auto-close braces

IPython.terminal.shortcuts.auto_match.double_quote(event: KeyPressEvent)

Auto-close double quotes

IPython.terminal.shortcuts.auto_match.single_quote(event: KeyPressEvent)

Auto-close single quotes

IPython.terminal.shortcuts.auto_match.docstring_double_quotes(event: KeyPressEvent)

Auto-close docstring (double quotes)

IPython.terminal.shortcuts.auto_match.docstring_single_quotes(event: KeyPressEvent)

Auto-close docstring (single quotes)

IPython.terminal.shortcuts.auto_match.raw_string_parenthesis(event: KeyPressEvent)

Auto-close parenthesis in raw strings

IPython.terminal.shortcuts.auto_match.raw_string_bracket(event: KeyPressEvent)

Auto-close bracker in raw strings

IPython.terminal.shortcuts.auto_match.raw_string_braces(event: KeyPressEvent)

Auto-close braces in raw strings

IPython.terminal.shortcuts.auto_match.skip_over(event: KeyPressEvent)

Skip over automatically added parenthesis/quote.

(rather than adding another parenthesis/quote)

IPython.terminal.shortcuts.auto_match.delete_pair(event: KeyPressEvent)

Delete auto-closed parenthesis