ipython / ipython/ipykernel

Event loop integration

未关闭
#1,088 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
734
派生
412
平均合并
1 天 5 小时
30 天内合并 PR
8

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。