From 586a7e229dec25c1c4b9b327df33699f6b4f683f 2023-02-28 10:54:57 From: Matthias Bussonnier Date: 2023-02-28 10:54:57 Subject: [PATCH] what's new version 8.11 (#13955) --- diff --git a/IPython/terminal/interactiveshell.py b/IPython/terminal/interactiveshell.py index 9494db9..c73acf9 100644 --- a/IPython/terminal/interactiveshell.py +++ b/IPython/terminal/interactiveshell.py @@ -541,7 +541,9 @@ class TerminalInteractiveShell(InteractiveShell): if key in shortcut } if len(matching) == 0: - raise ValueError(f"No shortcuts matching {specification} found") + raise ValueError( + f"No shortcuts matching {specification} found in {key_bindings.bindings}" + ) elif len(matching) > 1: raise ValueError( f"Multiple shortcuts matching {specification} found," diff --git a/docs/source/whatsnew/version8.rst b/docs/source/whatsnew/version8.rst index 7fecb79..d2cda6b 100644 --- a/docs/source/whatsnew/version8.rst +++ b/docs/source/whatsnew/version8.rst @@ -2,6 +2,47 @@ 8.x Series ============ +.. _version 8.11.0: + +IPython 8.11 +------------ + +Back on almost regular monthly schedule for IPython with end-of-month +really-late-Friday release to make sure some bugs are properly fixed. +Small addition of with a few new features, bugfix and UX improvements. + +This is a non-exhaustive list, but among other you will find: + +Faster Traceback Highlighting +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Resurrection of pre-IPython-8 traceback highlighting code. + +Really long and complicated files were slow to highlight in traceback with +IPython 8 despite upstream improvement that make many case better. Therefore +starting with IPython 8.11 when one of the highlighted file is more than 10 000 +line long by default, we'll fallback to a faster path that does not have all the +features of highlighting failing AST nodes. + +This can be configures by setting the value of +``IPython.code.ultratb.FAST_THRESHOLD`` to an arbitrary low or large value. + +Miscellaneous +~~~~~~~~~~~~~ + + - ``%gui`` should now support PySide6. :ghpull:`13864` + - Cli shortcuts can now be configured :ghpull:`13928` + (note that there might be an issue with prompt_toolkit 3.0.37 and shortcut configuration). + - Capture output should now respect ``;`` semicolon to suppress output. + :ghpull:`13940` + - Base64 encoded images (in jupyter frontend), will not have trailing newlines. + :ghpull:`13941` + +As usual you can find the full list of PRs on GitHub under `the 8.10 milestone +`__. + +Thanks to the `D. E. Shaw group `__ for sponsoring +work on IPython and related libraries. .. _version 8.10.0: @@ -262,7 +303,7 @@ Here is a non-exhaustive list of changes that have been implemented for IPython - show maxlen in deque's repr. :ghpull:`13648` Restore line numbers for Input ------------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Line number information in tracebacks from input are restored. Line numbers from input were removed during the transition to v8 enhanced traceback reporting. @@ -315,7 +356,7 @@ or, with xmode=Plain:: :ghpull:`13560` New setting to silence warning if working inside a virtual environment ----------------------------------------------------------------------- +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Previously, when starting IPython in a virtual environment without IPython installed (so IPython from the global environment is used), the following warning was printed: diff --git a/setup.cfg b/setup.cfg index 3b79695..28d7f46 100644 --- a/setup.cfg +++ b/setup.cfg @@ -37,7 +37,7 @@ install_requires = matplotlib-inline pexpect>4.3; sys_platform != "win32" pickleshare - prompt_toolkit>=3.0.30,<3.1.0 + prompt_toolkit>=3.0.30,<3.1.0,!=3.0.37 pygments>=2.4.0 stack_data traitlets>=5