ipython / ipython/ipykernel

Method to block Jupyter continuing to next cell?

Offen
#329 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

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,

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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