##// END OF EJS Templates
move infor to the right place
Matthias Bussonnier -
Show More
@@ -35,32 +35,6 b' You should be able to update by using:'
35 pip install ipython --upgrade
35 pip install ipython --upgrade
36
36
37
37
38 Autowait: Asynchronous REPL
39 ===========================
40
41 Staring with IPython 7.0 and on Python 3.6+, IPython can automatically await
42 code at top level, you should not need to access an event loop or runner
43 yourself. To know more read the `autoawait`_ section of our docs, or try the
44 following code::
45
46 In [6]: from asyncio import sleep
47 ...: print('Going to sleep...')
48 ...: await sleep(3)
49 ...: print('Waking up')
50 Going to sleep...
51 Waking up
52
53 Asynchronous code in a Notebook interface or any other frontend using the
54 Jupyter Protocol will need further updates of the IPykernel package.
55
56
57 Change to Nested Embed
58 ======================
59
60 The introduction of the ability to run async code had ripple effect on the
61 ability to use nested IPython. You may need to install the ``trio`` library
62 (version 05 at the time of this writing) to
63 have this feature working.
64
38
65
39
66 .. DO NOT EDIT THIS LINE BEFORE RELEASE. FEATURE INSERTION POINT.
40 .. DO NOT EDIT THIS LINE BEFORE RELEASE. FEATURE INSERTION POINT.
@@ -1,12 +1,14 b''
1 Await REPL
1 Autowait: Asynchronous REPL
2 ----------
2 ---------------------------
3
3
4 :ghpull:`10390` introduced the ability to ``await`` Futures and
4 Staring with IPython 7.0 and on Python 3.6+, IPython can automatically await
5 Coroutines in the REPL. For example::
5 code at top level, you should not need to access an event loop or runner
6 yourself. To know more read the :ref:`autoawait` section of our docs, see
7 :ghpull:`11265` or try the following code::
6
8
7 Python 3.6.0
9 Python 3.6.0
8 Type 'copyright', 'credits' or 'license' for more information
10 Type 'copyright', 'credits' or 'license' for more information
9 IPython 6.0.0.dev -- An enhanced Interactive Python. Type '?' for help.
11 IPython 7.0.0 -- An enhanced Interactive Python. Type '?' for help.
10
12
11 In [1]: import aiohttp
13 In [1]: import aiohttp
12 ...: result = aiohttp.get('https://api.github.com')
14 ...: result = aiohttp.get('https://api.github.com')
@@ -52,4 +54,16 b' like ``curio`` or ``trio``, to improve concurrency in the REPL::'
52 See :ref:`autoawait` for more information.
54 See :ref:`autoawait` for more information.
53
55
54
56
57 Asynchronous code in a Notebook interface or any other frontend using the
58 Jupyter Protocol will need further updates of the IPykernel package.
59
60
61 Change to Nested Embed
62 ----------------------
63
64 The introduction of the ability to run async code had ripple effect on the
65 ability to use nested IPython. You may need to install the ``trio`` library
66 (version 05 at the time of this writing) to
67 have this feature working.
68
55
69
General Comments 0
You need to be logged in to leave comments. Login now