##// END OF EJS Templates
Update autoawait.rst
Matthias Bussonnier -
Show More
@@ -58,7 +58,7 b' Should behave as expected in the IPython REPL::'
58
58
59 You can use the ``c.InteractiveShell.autoawait`` configuration option and set it
59 You can use the ``c.InteractiveShell.autoawait`` configuration option and set it
60 to :any:`False` to deactivate automatic wrapping of asynchronous code. You can
60 to :any:`False` to deactivate automatic wrapping of asynchronous code. You can
61 also use the :magic:`autoawait` magic to toggle the behavior at runtime::
61 also use the :magic:`%autoawait` magic to toggle the behavior at runtime::
62
62
63 In [1]: %autoawait False
63 In [1]: %autoawait False
64
64
@@ -127,7 +127,7 b' Effects on IPython.embed()'
127 IPython core being asynchronous, the use of ``IPython.embed()`` will now require
127 IPython core being asynchronous, the use of ``IPython.embed()`` will now require
128 a loop to run. By default IPython will use a fake coroutine runner which should
128 a loop to run. By default IPython will use a fake coroutine runner which should
129 allow ``IPython.embed()`` to be nested. Though this will prevent usage of the
129 allow ``IPython.embed()`` to be nested. Though this will prevent usage of the
130 :magic:`autoawait` feature when using IPython embed.
130 :magic:`%autoawait` feature when using IPython embed.
131
131
132 You can set explicitly a coroutine runner for ``embed()`` if you desire to run
132 You can set explicitly a coroutine runner for ``embed()`` if you desire to run
133 asynchronous code, the exact behavior is though undefined.
133 asynchronous code, the exact behavior is though undefined.
General Comments 0
You need to be logged in to leave comments. Login now