Skip to content

Commit fde60d1

Browse files
authored
set_event_loop_policy for windows
# patch c.f. tornadoweb/tornado#2608 (comment) asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # python-3.8.x
1 parent cc3bccf commit fde60d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nbclient/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
from .output_widget import OutputWidget
3333

3434

35+
# patch c.f. https://github.com/tornadoweb/tornado/issues/2608#issuecomment-491489432
36+
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # python-3.8.x
37+
38+
3539
def timestamp() -> str:
3640
return datetime.datetime.utcnow().isoformat() + 'Z'
3741

0 commit comments

Comments
 (0)