ipython / ipython/ipykernel

Event loop integration

Abierto
#1,088 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
734
Forks
412
Merge medio
1 d 5 h
PR fusionados (30 d)
8

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.