Show More
@@ -122,7 +122,7 b' no network request is done between ``In[1]`` and ``In[2]``.' | |||
|
122 | 122 | |
|
123 | 123 | |
|
124 | 124 | Effects on IPython.embed() |
|
125 | ========================== | |
|
125 | -------------------------- | |
|
126 | 126 | |
|
127 | 127 | IPython core being asynchronous, the use of ``IPython.embed()`` will now require |
|
128 | 128 | a loop to run. By default IPython will use a fake coroutine runner which should |
@@ -133,7 +133,7 b' You can set explicitly a coroutine runner for ``embed()`` if you desire to run' | |||
|
133 | 133 | asynchronous code, the exact behavior is though undefined. |
|
134 | 134 | |
|
135 | 135 | Effects on Magics |
|
136 | ================= | |
|
136 | ----------------- | |
|
137 | 137 | |
|
138 | 138 | A couple of magics (``%%timeit``, ``%timeit``, ``%%time``, ``%%prun``) have not |
|
139 | 139 | yet been updated to work with asynchronous code and will raise syntax errors |
@@ -142,7 +142,7 b" those, and extra cases we haven't caught yet. We hope for better support in Cor" | |||
|
142 | 142 | Python for top-level Async code. |
|
143 | 143 | |
|
144 | 144 | Internals |
|
145 | ========= | |
|
145 | --------- | |
|
146 | 146 | |
|
147 | 147 | As running asynchronous code is not supported in interactive REPL (as of Python |
|
148 | 148 | 3.7) we have to rely to a number of complex workaround and heuristic to allow |
@@ -222,7 +222,7 b' We invite you to thoroughly test this feature and report any unexpected behavior' | |||
|
222 | 222 | as well as propose any improvement. |
|
223 | 223 | |
|
224 | 224 | Using Autoawait in a notebook (IPykernel) |
|
225 | ========================================= | |
|
225 | ----------------------------------------- | |
|
226 | 226 | |
|
227 | 227 | Update ipykernel to version 5.0 or greater:: |
|
228 | 228 | |
@@ -238,11 +238,11 b' the eventloop themselves. In cases like these you can try to use projects like' | |||
|
238 | 238 | <https://github.com/jupyter/notebook/issues/3397#issuecomment-419386811>`_ |
|
239 | 239 | |
|
240 | 240 | Difference between terminal IPython and IPykernel |
|
241 | ================================================= | |
|
241 | ------------------------------------------------- | |
|
242 | 242 | |
|
243 | 243 | The exact asynchronous code running behavior varies between Terminal IPython and |
|
244 | 244 | IPykernel. The root cause of this behavior is due to IPykernel having a |
|
245 |
|
|
|
245 | *persistent* ``asyncio`` loop running, while Terminal IPython starts and stops a | |
|
246 | 246 | loop for each code block. This can lead to surprising behavior in some case if |
|
247 | 247 | you are used to manipulate asyncio loop yourself, see for example |
|
248 | 248 | :ghissue:`11303` for a longer discussion but here are some of the astonishing |
General Comments 0
You need to be logged in to leave comments.
Login now