Currently there is a signal available on a cell cell.model.stateChanged with the name executionCount that is emitted twice when a cell is run: 1st when the execution count is set to null before the cell is run, and 2nd when the execution count is set to a new number.
However, currently there is no way to directly detect:
when a Markdown cell is run (or any other cell type that does not have an execution count)
when "run all" is invoked, the full set of widgets that are run
A full list of widgets run is available when it is computed in runSelected of actions.ts. Requesting that a new signal type is emitted in Notebook like "widgetsRun" with the list of widgets run.
The primary use case I have is a JupyterLab extension that listens to run event fires on run, such as:
a logger/history based tool
a program analysis tool
collaboration (if Alice is working on a cell at the same as Bob, Alice could get a signal when Bob gets a new result, even if she doesn't want to see Bob's current editing since she's working on the same cell)
something that watches Markdown cells, like a table of contents extension, needs to know when to update
The text was updated successfully, but these errors were encountered: