Private
_cellThe function is called on kernel's idle status message. It is used to keep track of number of executed cells or Comm custom messages and the status of kernel.
The notebook which contains the executed code cell.
The id of message.
Private
_cellThe function is called on kernel's execute_request
message or Comm message, it is
used to keep track number of scheduled cell or Comm execution message
and the status of kernel.
The notebook which contains the scheduled code. cell
The id of message.
Private
_currentCurrent activated notebook.
Private
_displayThe option to show the indicator on status bar or toolbar.
Private
_notebookA weak map to hold execution status of multiple notebooks.
Private
_renderA flag to show or hide the indicator.
Private
_resetReset the input execution state.
the state to be rested.
Private
_restartThe function is called on kernel's restarting status message. It is used to clear the state tracking the number of executed cells.
The notebook which contains the executed code cell.
Private
_scheduleSchedule switch to idle status and clearing of the timer.
To keep track of cells executed under 1 second,
the execution state is marked as needReset
1 second after executing
these cells. This Timeout
will be cleared if there is any cell
scheduled after that.
Private
_startThis function is called on kernel's execute_input
message to start
the elapsed time counter.
The notebook which contains the scheduled execution request.
Private
_tickIncrement the executed time of input execution state
and emit stateChanged
signal to re-render the indicator.
the state to be updated.
Readonly
stateA signal emitted when any model state changes.
The display options for progress bar and elapsed time.
Set the display options for progress bar and elapsed time.
Options to be used
Test whether the model is disposed.
Attach a notebook with session context to model in order to keep track of multiple notebooks. If a session context is already attached, only set current activated notebook to input.
The notebook and session context to be attached to model
Optional
content?: NotebookOptional
context?: ISessionContextGet the execution state associated with a notebook.
The notebook used to identify execution state.
Generated using TypeDoc
A VDomModel for the execution status indicator.