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 dc8d412 commit 0a2c228Copy full SHA for 0a2c228
jupyter_client/utils.py
@@ -13,8 +13,8 @@ def wrapped(*args, **kwargs):
13
try:
14
loop = asyncio.get_running_loop()
15
except RuntimeError:
16
- loop = asyncio.new_event_loop()
17
- asyncio.set_event_loop(loop)
+ # Workaround for bugs.python.org/issue39529.
+ loop = asyncio.get_event_loop_policy().get_event_loop()
18
import nest_asyncio # type: ignore
19
20
nest_asyncio.apply(loop)
0 commit comments