ipython / ipython/ipykernel

Method to block Jupyter continuing to next cell?

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

描述

I'm trying to do some trickery using Comm objects: a cell in a notebook sends a message to the frontend, which sends back a reply. I've figured out how to asynchronously handle the reply (so that it doesn't block the event loop from receiving the reply), but I'm having the problem that when telling Jupyter to run all, it starts executing the next cell before the callback has had a chance to run.

Is there somewhere I can modify the busy/idle handling so that the kernel doesn't indicate that it's ready to run the next cell until I manually indicate idleness in the callback? That is, assuming it is the idle notification that triggers the start of the next cell, rather than something else,

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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