A signal emitted when the content of the model changes.
The code cell's prompt number. Will be null if the cell has not been run.
A unique identifier for the cell.
Whether the code cell has been edited since the last run.
Test whether the object has been disposed.
This property is always safe to access.
The metadata associated with the cell.
A mime type of the model.
It is never
null, the default mime type is
A signal emitted when a property changes.
IModelDB instance in which model
data is stored.
The cell outputs.
The currently selected code.
A signal emitted when the shared model was switched.
A signal emitted when a model state changes.
Whether the cell is trusted.
The type of the cell.
This is a read-only property.
The text stored in the model.
Clear execution, outputs, and related metadata
Dispose of the resources held by the object.
If the object's
dispose method is called more than once, all
calls made after the first will be a no-op.
It is undefined behavior to use any functionality of the object after it has been disposed unless otherwise explicitly noted.
When we initialize a cell model, we create a standalone cell model that cannot be shared in a YNotebook. Call this function to re-initialize the local representation based on a fresh shared model (e.g. models.YFile or models.YCodeCell).
Serialize the model to JSON.
Generated using TypeDoc
The definition of a code cell.