The list of cells in the notebook.
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.
Test whether the object has been disposed.
This is a read-only property which is always safe to access.
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.
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 object.
It is generally unsafe to use the object after it has been disposed.
If the object's dispose
method is called more than once, all
calls made after the first will be a no-op.
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.
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.
Metadata associated with the nbformat are not included.
Serialize the model to JSON.
Serialize the model to a string.
Generated using TypeDoc
The definition of a model object for a notebook widget.