ipython / ipykernel

IPython Kernel for Jupyter
https://ipykernel.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
653 stars 368 forks source link

`_eventloop_set` event called from non-async context #1292

Open davidbrochart opened 2 weeks ago

davidbrochart commented 2 weeks ago

The _eventloop_set AnyIO event cannot be set here, because it may be called from a non-async context. This event was introduced in https://github.com/ipython/ipykernel/pull/1265 and the issue was revealed in https://github.com/ipython/ipykernel/pull/1291 when running on a trio backend.