From 3797f31ce0008ea9ff002263baa66810706cece7 2018-08-16 19:38:53 From: Matthias Bussonnier Date: 2018-08-16 19:38:53 Subject: [PATCH] move infor to the right place --- diff --git a/docs/source/whatsnew/development.rst b/docs/source/whatsnew/development.rst index ca16bd6..b8b2f00 100644 --- a/docs/source/whatsnew/development.rst +++ b/docs/source/whatsnew/development.rst @@ -35,32 +35,6 @@ You should be able to update by using: pip install ipython --upgrade -Autowait: Asynchronous REPL -=========================== - -Staring with IPython 7.0 and on Python 3.6+, IPython can automatically await -code at top level, you should not need to access an event loop or runner -yourself. To know more read the `autoawait`_ section of our docs, or try the -following code:: - - In [6]: from asyncio import sleep - ...: print('Going to sleep...') - ...: await sleep(3) - ...: print('Waking up') - Going to sleep... - Waking up - -Asynchronous code in a Notebook interface or any other frontend using the -Jupyter Protocol will need further updates of the IPykernel package. - - -Change to Nested Embed -====================== - -The introduction of the ability to run async code had ripple effect on the -ability to use nested IPython. You may need to install the ``trio`` library -(version 05 at the time of this writing) to -have this feature working. .. DO NOT EDIT THIS LINE BEFORE RELEASE. FEATURE INSERTION POINT. diff --git a/docs/source/whatsnew/pr/await-repl.rst b/docs/source/whatsnew/pr/await-repl.rst index 614a00a..c8f191c 100644 --- a/docs/source/whatsnew/pr/await-repl.rst +++ b/docs/source/whatsnew/pr/await-repl.rst @@ -1,12 +1,14 @@ -Await REPL ----------- +Autowait: Asynchronous REPL +--------------------------- -:ghpull:`10390` introduced the ability to ``await`` Futures and -Coroutines in the REPL. For example:: +Staring with IPython 7.0 and on Python 3.6+, IPython can automatically await +code at top level, you should not need to access an event loop or runner +yourself. To know more read the :ref:`autoawait` section of our docs, see +:ghpull:`11265` or try the following code:: Python 3.6.0 Type 'copyright', 'credits' or 'license' for more information - IPython 6.0.0.dev -- An enhanced Interactive Python. Type '?' for help. + IPython 7.0.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import aiohttp ...: result = aiohttp.get('https://api.github.com') @@ -52,4 +54,16 @@ like ``curio`` or ``trio``, to improve concurrency in the REPL:: See :ref:`autoawait` for more information. +Asynchronous code in a Notebook interface or any other frontend using the +Jupyter Protocol will need further updates of the IPykernel package. + + +Change to Nested Embed +---------------------- + +The introduction of the ability to run async code had ripple effect on the +ability to use nested IPython. You may need to install the ``trio`` library +(version 05 at the time of this writing) to +have this feature working. +