ReadonlyawarenessDocument awareness
ReadonlycellsThe list of shared cells in the notebook.
ReadonlychangedThe changed signal.
Document dirty state
Optional ReadonlydisableWether the undo/redo logic should be considered on the full document across all cells.
ReadonlydisposedA signal emitted when the object is disposed.
ReadonlyisNotebook metadata.
ReadonlymetadataSignal triggered when a metadata changes.
ReadonlynbformatThe major version number of the nbformat.
Readonlynbformat_The minor version number of the nbformat.
ReadonlystateDocument state
ReadonlyversionDocument version
Add a shared cell at the notebook bottom.
Cell to add.
The added cell.
Whether the object can undo changes.
Whether the object can redo changes.
Clear the change stack.
Remove a cell.
Index of the cell to remove.
Remove a range of cells.
The start index of the range to remove (inclusive).
The end index of the range to remove (exclusive).
Delete a metadata notebook.
The key to delete
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.
Override the notebook with a JSON-serialized document.
The notebook
Get a shared cell by index.
Cell's position.
The requested shared cell.
Returns a metadata associated with the notebook.
Key to get from the metadata
Notebook's metadata.
Insert a shared cell into a specific position.
Cell's position.
Cell to insert.
The inserted cell.
Insert a list of shared cells into a specific position.
Position to insert the cells.
Array of shared cells to insert.
The inserted cells.
Move a cell.
Index of the cell to move.
New position of the cell.
Move cells.
Index of the first cells to move.
New position of the first cell (in the current array).
Optionaln: number
Number of cells to move (default 1)
Redo an operation.
Whether a change was made.
Sets all metadata associated with the notebook.
All Notebook's metadata.
Sets a metadata associated with the notebook.
The key to set.
New metadata value
Set the value of a state attribute
Key to set
New attribute value
Serialize the model to JSON.
Perform a transaction. While the function f is called, all changes to the shared document are bundled into a single event.
Transaction to execute
Optionalundoable: boolean
Whether to track the change in the action history or not (default true)
Optionalorigin: anyUndo an operation.
Whether a change was made.
Updates the metadata associated with the notebook.
Metadata's attribute to update.
Implements an API for nbformat.INotebookContent