We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ffa3d4 commit beac94bCopy full SHA for beac94b
jupyter_client/threaded.py
@@ -14,6 +14,7 @@
14
from typing import Optional
15
from typing import Union
16
17
+import nest_asyncio # type:ignore
18
import zmq
19
from traitlets import Instance
20
from traitlets import Type
@@ -211,6 +212,7 @@ def run(self) -> None:
211
212
"""Run my loop, ignoring EINTR events in the poller"""
213
loop = asyncio.new_event_loop()
214
asyncio.set_event_loop(loop)
215
+ nest_asyncio.apply(loop)
216
self.ioloop = ioloop.IOLoop()
217
self.ioloop._asyncio_event_loop = loop
218
# signal that self.ioloop is defined
0 commit comments