Skip to content

Commit

Permalink
set_event_loop_policy for windows
Browse files Browse the repository at this point in the history
# patch c.f. tornadoweb/tornado#2608 (comment)
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())  # python-3.8.x
  • Loading branch information
juhuebner authored Mar 7, 2021
1 parent cc3bccf commit fde60d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nbclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
from .output_widget import OutputWidget


# patch c.f. https://github.com/tornadoweb/tornado/issues/2608#issuecomment-491489432
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy()) # python-3.8.x


def timestamp() -> str:
return datetime.datetime.utcnow().isoformat() + 'Z'

Expand Down

0 comments on commit fde60d1

Please sign in to comment.