Construct a new notebook model.
Get the observable list of notebook cells.
This is a read-only property.
A signal emitted when the document content changes.
The default kernel language of the document.
This is a read-only property.
The default kernel name of the document.
This is a read-only property.
The dirty state of the model.
This should be cleared when the document is loaded from or saved to disk.
The dirty state of the model.
This should be cleared when the document is loaded from or saved to disk.
Get whether the model is disposed.
This is a read-only property.
A signal emitted when a metadata field changes.
The major version number of the nbformat.
This is a read-only property.
The minor version number of the nbformat.
This is a read-only property.
The read-only state of the model.
The read-only state of the model.
A signal emitted when a model state changes.
A factory for creating a new code cell.
The data to use for the original source data.
A new code cell. If a source cell is provided, the new cell will be intialized with the data from the source.
If the source argument does not give an input mimetype, the code cell defaults to the notebook [[defaultMimetype]].
A factory for creating a new Markdown cell.
The data to use for the original source data.
A new markdown cell. If a source cell is provided, the new cell will be intialized with the data from the source.
A factory for creating a new raw cell.
The data to use for the original source data.
A new raw cell. If a source cell is provided, the new cell will be intialized with the data from the source.
Dispose of the resources held by the model.
Deserialize the model from JSON.
Should emit a [contentChanged] signal.
Deserialize the model from a string.
Should emit a [contentChanged] signal.
Get a metadata cursor for the notebook.
Metadata associated with the nbformat spec are set directly on the model. This method is used to interact with a namespaced set of metadata on the notebook.
Initialize the model state.
List the metadata namespace keys for the notebook.
Handle a change to a cell state.
Handle a change in the cells list.
Set the cursor data for a given field.
Serialize the model to JSON.
Serialize the model to a string.
Generated using TypeDoc
An implementation of a notebook Model.