Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jupyter/jupyter_client
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.4.7
Choose a base ref
...
head repository: jupyter/jupyter_client
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: beac94baac163015e8165fde5661aaf026e92364
Choose a head ref
  • 1 commit
  • 1 file changed
  • 3 contributors

Commits on Dec 4, 2022

  1. Make sure loop is marked with nest_asyncio (#893)

    Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
    Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
    3 people authored Dec 4, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    beac94b View commit details
Showing with 2 additions and 0 deletions.
  1. +2 −0 jupyter_client/threaded.py
2 changes: 2 additions & 0 deletions jupyter_client/threaded.py
Original file line number Diff line number Diff line change
@@ -14,6 +14,7 @@
from typing import Optional
from typing import Union

import nest_asyncio # type:ignore
import zmq
from traitlets import Instance
from traitlets import Type
@@ -211,6 +212,7 @@ def run(self) -> None:
"""Run my loop, ignoring EINTR events in the poller"""
loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)
nest_asyncio.apply(loop)
self.ioloop = ioloop.IOLoop()
self.ioloop._asyncio_event_loop = loop
# signal that self.ioloop is defined