Skip to content

Commit 8039c95

Browse files
committed
try to fix ipykernel again
1 parent af02fad commit 8039c95

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jupyter_client/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,19 @@
44
- vendor functions from ipython_genutils that should be retired at some point.
55
"""
66
import asyncio
7-
import atexit
87
import inspect
98
import os
109

10+
# import atexit
11+
1112

1213
def run_sync(coro):
1314
def wrapped(*args, **kwargs):
1415
try:
1516
loop = asyncio.get_running_loop()
1617
except RuntimeError:
1718
loop = asyncio.new_event_loop()
18-
atexit.register(loop.close)
19+
# atexit.register(loop.close)
1920
asyncio.set_event_loop(loop)
2021
import nest_asyncio # type: ignore
2122

0 commit comments

Comments
 (0)