From 85a4bd798f2def36f662f064f5f64b6ef0762801 2022-08-30 14:45:54 From: Matthias Bussonnier Date: 2022-08-30 14:45:54 Subject: [PATCH] update whatsnew --- diff --git a/docs/source/whatsnew/development.rst b/docs/source/whatsnew/development.rst index 502b0e0..9969680 100644 --- a/docs/source/whatsnew/development.rst +++ b/docs/source/whatsnew/development.rst @@ -25,6 +25,7 @@ Need to be updated: + .. DO NOT EDIT THIS LINE BEFORE RELEASE. FEATURE INSERTION POINT. Backwards incompatible changes diff --git a/docs/source/whatsnew/pr/end-shortcut-accept-suggestion.rst b/docs/source/whatsnew/pr/end-shortcut-accept-suggestion.rst deleted file mode 100644 index c04998e..0000000 --- a/docs/source/whatsnew/pr/end-shortcut-accept-suggestion.rst +++ /dev/null @@ -1,7 +0,0 @@ -Added shortcut for accepting auto suggestion -============================================ - -Added End key shortcut for accepting auto-suggestion -This binding works in Vi mode too, provided -TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode is set to be True. - diff --git a/docs/source/whatsnew/pr/fix-tab-completion-consecutive-separators.rst b/docs/source/whatsnew/pr/fix-tab-completion-consecutive-separators.rst deleted file mode 100644 index 3b1eed6..0000000 --- a/docs/source/whatsnew/pr/fix-tab-completion-consecutive-separators.rst +++ /dev/null @@ -1,5 +0,0 @@ -Fixed tab completion for inputs with consecutive separators -=========================================================== - -Fixed error raised when attempting to tab-complete an input string with -consecutive periods or forward slashes (such as "file:///var/log/..."). diff --git a/docs/source/whatsnew/pr/latex-generation-no-popup-window.rst b/docs/source/whatsnew/pr/latex-generation-no-popup-window.rst deleted file mode 100644 index 4cf73af..0000000 --- a/docs/source/whatsnew/pr/latex-generation-no-popup-window.rst +++ /dev/null @@ -1,5 +0,0 @@ -No popup in window for latex generation -======================================= - -When generating latex (e.g. via `_latex_repr_`) no popup window is shows under Windows. - diff --git a/docs/source/whatsnew/pr/latex_rendering_relative_files.rst b/docs/source/whatsnew/pr/latex_rendering_relative_files.rst deleted file mode 100644 index befd4af..0000000 --- a/docs/source/whatsnew/pr/latex_rendering_relative_files.rst +++ /dev/null @@ -1,7 +0,0 @@ -Relative filenames in Latex rendering -===================================== - -The `latex_to_png_dvipng` command internally generates input and output file arguments to `latex` and `dvipis`. These arguments are now generated as relative files to the current working directory instead of absolute file paths. -This solves a problem where the current working directory contains characters that are not handled properly by `latex` and `dvips`. -There are no changes to the user API. - diff --git a/docs/source/whatsnew/pr/restore-line-numbers.rst b/docs/source/whatsnew/pr/restore-line-numbers.rst deleted file mode 100644 index fb07292..0000000 --- a/docs/source/whatsnew/pr/restore-line-numbers.rst +++ /dev/null @@ -1,50 +0,0 @@ -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. - -So, instead of:: - - --------------------------------------------------------------------------- - ZeroDivisionError Traceback (most recent call last) - Input In [3], in () - ----> 1 myfunc(2) - - Input In [2], in myfunc(z) - 1 def myfunc(z): - ----> 2 foo.boo(z-1) - - File ~/code/python/ipython/foo.py:3, in boo(x) - 2 def boo(x): - ----> 3 return 1/(1-x) - - ZeroDivisionError: division by zero - -The error traceback now looks like:: - - --------------------------------------------------------------------------- - ZeroDivisionError Traceback (most recent call last) - Cell In [3], line 1 - ----> 1 myfunc(2) - - Cell In [2], line 2, in myfunc(z) - 1 def myfunc(z): - ----> 2 foo.boo(z-1) - - File ~/code/python/ipython/foo.py:3, in boo(x) - 2 def boo(x): - ----> 3 return 1/(1-x) - - ZeroDivisionError: division by zero - -or, with xmode=Plain:: - - Traceback (most recent call last): - Cell In [12], line 1 - myfunc(2) - Cell In [6], line 2 in myfunc - foo.boo(z-1) - File ~/code/python/ipython/foo.py:3 in boo - return 1/(1-x) - ZeroDivisionError: division by zero diff --git a/docs/source/whatsnew/pr/silence-running-in-venv-warning.rst b/docs/source/whatsnew/pr/silence-running-in-venv-warning.rst deleted file mode 100644 index ed245bd..0000000 --- a/docs/source/whatsnew/pr/silence-running-in-venv-warning.rst +++ /dev/null @@ -1,8 +0,0 @@ -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: - - Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. - -This warning can be permanently silenced by setting ``c.InteractiveShell.warn_venv`` to ``False`` (the default is ``True``). diff --git a/docs/source/whatsnew/pr/stripping-decorators-bug.rst b/docs/source/whatsnew/pr/stripping-decorators-bug.rst deleted file mode 100644 index 2ea03d7..0000000 --- a/docs/source/whatsnew/pr/stripping-decorators-bug.rst +++ /dev/null @@ -1,4 +0,0 @@ -Stripping decorators bug -======================== - -Fixed bug which meant that ipython code blocks in restructured text documents executed with the ipython-sphinx extension skipped any lines of code containing python decorators. diff --git a/docs/source/whatsnew/version8.rst b/docs/source/whatsnew/version8.rst index c4b7b15..59e7165 100644 --- a/docs/source/whatsnew/version8.rst +++ b/docs/source/whatsnew/version8.rst @@ -2,6 +2,122 @@ 8.x Series ============ +.. _version 8.5.0: + +IPython 8.5.0 +------------- + +First release since a couple of month due to various reasons and timing preventing +me for sticking to the usual monthly release the last Friday of each month. This +is of non negligible size as it has more than two dozen PRs with various fixes +an bug fixes. + +Many thanks to everybody who contributed PRs for your patience in review and +merges. + +Here is a non exhaustive list of changes that have been implemented for IPython +8.5.0. As usual you can find the full list of issues and PRs tagged with `the +8.5 milestone +`__. + + - Added shortcut for accepting auto suggestion. The End key shortcut for + accepting auto-suggestion This binding works in Vi mode too, provided + ``TerminalInteractiveShell.emacs_bindings_in_vi_insert_mode`` is set to be + ``True`` :ghpull:`13566`. + + - No popup in window for latex generation w hen generating latex (e.g. via + `_latex_repr_`) no popup window is shows under Windows. :ghpull:`13679` + + - Fixed error raised when attempting to tab-complete an input string with + consecutive periods or forward slashes (such as "file:///var/log/..."). + :ghpull:`13675` + + - Relative filenames in Latex rendering : + The `latex_to_png_dvipng` command internally generates input and output file + arguments to `latex` and `dvipis`. These arguments are now generated as + relative files to the current working directory instead of absolute file + paths. This solves a problem where the current working directory contains + characters that are not handled properly by `latex` and `dvips`. There are + no changes to the user API. :ghpull:`13680` + + - Stripping decorators bug: Fixed bug which meant that ipython code blocks in + restructured text documents executed with the ipython-sphinx extension + skipped any lines of code containing python decorators. :ghpull:`13612` + + - Allow some modules with frozen dataclasses to be reloaded. :ghpull:`13732` + - Fix paste magic on wayland. :ghpull:`13671` + - 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. + +So, instead of:: + + --------------------------------------------------------------------------- + ZeroDivisionError Traceback (most recent call last) + Input In [3], in () + ----> 1 myfunc(2) + + Input In [2], in myfunc(z) + 1 def myfunc(z): + ----> 2 foo.boo(z-1) + + File ~/code/python/ipython/foo.py:3, in boo(x) + 2 def boo(x): + ----> 3 return 1/(1-x) + + ZeroDivisionError: division by zero + +The error traceback now looks like:: + + --------------------------------------------------------------------------- + ZeroDivisionError Traceback (most recent call last) + Cell In [3], line 1 + ----> 1 myfunc(2) + + Cell In [2], line 2, in myfunc(z) + 1 def myfunc(z): + ----> 2 foo.boo(z-1) + + File ~/code/python/ipython/foo.py:3, in boo(x) + 2 def boo(x): + ----> 3 return 1/(1-x) + + ZeroDivisionError: division by zero + +or, with xmode=Plain:: + + Traceback (most recent call last): + Cell In [12], line 1 + myfunc(2) + Cell In [6], line 2 in myfunc + foo.boo(z-1) + File ~/code/python/ipython/foo.py:3 in boo + return 1/(1-x) + ZeroDivisionError: division by zero + +: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: + + Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv. + +This warning can be permanently silenced by setting ``c.InteractiveShell.warn_venv`` to ``False`` (the default is ``True``). + +:ghpull:`13706` + +------- + +Thanks to the `D. E. Shaw group `__ for sponsoring +work on IPython and related libraries. + + .. _version 8.4.0: IPython 8.4.0