From 7ebd20f4dc9e6a2a165ef6f6fa2c76fa0e52dc1b 2017-09-12 20:07:07 From: Matthias Bussonnier Date: 2017-09-12 20:07:07 Subject: [PATCH] Consolidate What's new dev and 5.5 Need to be backported to 5.x branch. --- diff --git a/docs/source/whatsnew/development.rst b/docs/source/whatsnew/development.rst index 13f02a4..ad2ba44 100644 --- a/docs/source/whatsnew/development.rst +++ b/docs/source/whatsnew/development.rst @@ -10,6 +10,49 @@ This document describes in-flight development work. conflicts for other Pull Requests). Instead, create a new file in the `docs/source/whatsnew/pr` folder +IPython 6.2 contains all the bugs fixes and features available in IPython 5.5: + + - Built in progress bar support + - System Wide config + +As well as the following: + + +Function signature +------------------ + +Terminal IPython will now show the signature of the function while completing. +Only the currently highlighted function will show its signature on the line +below the completer by default. The functionality is recent so might be +limited, we welcome bug report and enhancement request on it. :gh:`10507` + +Assignments return values +------------------------- + +IPython can now trigger the display hook on last assignment of cells. +Up until 6.0 the following code wouldn't show the value of the assigned +variable:: + + In[1]: xyz = "something" + # nothing shown + +You would have to actually make it the last statement:: + + In [2]: xyz = "something else" + ... : xyz + Out[2]: "something else" + +With the option ``InteractiveShell.ast_node_interactivity='last_expr_or_assign'`` +you can now do:: + + In [2]: xyz = "something else" + Out[2]: "something else" + +This option can be toggled at runtime with the ``%config`` magic, and will +trigger on assignment ``a = 1``, augmented assignment ``+=``, ``-=``, ``|=`` ... +as well as type annotated assignments: ``a:int = 2``. + +See :gh:`10598` .. DO NOT EDIT THIS LINE BEFORE RELEASE. FEATURE INSERTION POINT. diff --git a/docs/source/whatsnew/index.rst b/docs/source/whatsnew/index.rst index f13c5b4..ac5a2b4 100644 --- a/docs/source/whatsnew/index.rst +++ b/docs/source/whatsnew/index.rst @@ -20,7 +20,7 @@ development work they do here in a user friendly format. .. toctree:: :maxdepth: 1 - developement + development version6 github-stats-6 version5 diff --git a/docs/source/whatsnew/pr/env-config.rst b/docs/source/whatsnew/pr/env-config.rst deleted file mode 100644 index 9023540..0000000 --- a/docs/source/whatsnew/pr/env-config.rst +++ /dev/null @@ -1,5 +0,0 @@ - -- IPython now looks for config files in ``{sys.prefix}/etc/ipython`` - for environment-specific configuration. -- Startup files can be found in ``/etc/ipython/startup`` or ``{sys.prefix}/etc/ipython/startup`` - in addition to the profile directory, for system-wide or env-specific startup files. diff --git a/docs/source/whatsnew/pr/interactive_assignment.rst b/docs/source/whatsnew/pr/interactive_assignment.rst deleted file mode 100644 index 0e193ed..0000000 --- a/docs/source/whatsnew/pr/interactive_assignment.rst +++ /dev/null @@ -1,22 +0,0 @@ -IPython can now trigger the display hook on last assignment of cells. -Up until 6.0 the following code wouldn't show the value of the assigned -variable:: - - In[1]: xyz = "something" - # nothing shown - -You would have to actually make it the last statement:: - - In [2]: xyz = "something else" - ... : xyz - Out[2]: "something else" - -With the option ``InteractiveShell.ast_node_interactivity='last_expr_or_assign'`` -you can now do:: - - In [2]: xyz = "something else" - Out[2]: "something else" - -This option can be toggled at runtime with the ``%config`` magic, and will -trigger on assignment ``a = 1``, augmented assignment ``+=``, ``-=``, ``|=`` ... -as well as type annotated assignments: ``a:int = 2``. diff --git a/docs/source/whatsnew/pr/jedi-signature.rst b/docs/source/whatsnew/pr/jedi-signature.rst deleted file mode 100644 index dc16497..0000000 --- a/docs/source/whatsnew/pr/jedi-signature.rst +++ /dev/null @@ -1,4 +0,0 @@ -Terminal IPython will now show the signature of the function while completing. -Only the currently highlighted function will show its signature on the line -below the completer by default. The functionality is recent so might be -limited, we welcome bug report and enhancement request on it. diff --git a/docs/source/whatsnew/pr/progressbar.rst b/docs/source/whatsnew/pr/progressbar.rst deleted file mode 100644 index b74b8ae..0000000 --- a/docs/source/whatsnew/pr/progressbar.rst +++ /dev/null @@ -1,10 +0,0 @@ -IPython now has built-in support for progressbars:: - - In[1]: from IPython.display import ProgressBar - ... : pb = ProgressBar(100) - ... : pb - - In[2]: pb.progress = 50 - - # progress bar in cell 1 updates. - diff --git a/docs/source/whatsnew/version5.rst b/docs/source/whatsnew/version5.rst index 283338b..a54e69a 100644 --- a/docs/source/whatsnew/version5.rst +++ b/docs/source/whatsnew/version5.rst @@ -4,6 +4,36 @@ .. _whatsnew540: +IPython 5.5 +=========== + +System Wide config +------------------ + +- IPython now looks for config files in ``{sys.prefix}/etc/ipython`` + for environment-specific configuration. +- Startup files can be found in ``/etc/ipython/startup`` or ``{sys.prefix}/etc/ipython/startup`` + in addition to the profile directory, for system-wide or env-specific startup files. + +See :gh:`10644` + +ProgressBar +----------- + + +IPython now has built-in support for progressbars:: + + In[1]: from IPython.display import ProgressBar + ... : pb = ProgressBar(100) + ... : pb + + In[2]: pb.progress = 50 + + # progress bar in cell 1 updates. + +See :gh:`10755` + + IPython 5.4 ===========