ipython / ipython/ipykernel

Event loop integration

Offen
#1,088 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Python
Sterne
734
Forks
412
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
8

Beschreibung

This issue is mostly for me to understand how we can move forward with [the switch to AnyIO](https://github.com/ipython/ipykernel/pull/1079) with regards to event loop integration.
It looks like this is currently done manually by the host event loop, which must call `kernel.do_one_iteration()` [regularly](https://ipython.readthedocs.io/en/stable/config/eventloops.html#integrating-with-a-new-event-loop-in-the-kernel).
I am wondering if we could use something like [Trio's guest mode](https://trio.readthedocs.io/en/stable/reference-lowlevel.html#using-guest-mode-to-run-trio-on-top-of-other-event-loops) instead. There would be no need to worry about low-level details and manually run ipykernel's event loop.

cc @Carreau

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.