Skip to main content

Crate ruff_notebook

Crate ruff_notebook 

Source
Expand description

Utils for reading and writing jupyter notebooks

Structs§

CellMetadata
Cell-level metadata.
CellOffsets
Cell offsets are used to keep track of the start and end offsets of each cell in the concatenated source code. These offsets are in sorted order.
CellStart
CodeCell
Notebook code cell.
CodeCellMetadataVSCode
VS Code specific cell metadata. https://github.com/microsoft/vscode/blob/e6c009a3d4ee60f352212b978934f52c4689fbd9/extensions/ipynb/src/serializers.ts#L104-L107
Kernelspec
Kernel information.
LanguageInfo
Language information.
MarkdownCell
Notebook markdown cell.
Notebook
NotebookIndex
Jupyter Notebook indexing table
RawCell
Notebook raw nbconvert cell.
RawNotebook
The root of the JSON of a Jupyter Notebook
RawNotebookMetadata
Notebook root-level metadata.
SortAlphabetically
This is used to serialize any value implementing Serialize alphabetically.

Enums§

Cell
String identifying the type of cell.
NotebookError
An error that can occur while deserializing a Jupyter Notebook.
SourceValue
mimetype output (e.g. text/plain), represented as either an array of strings or a string.

Functions§

round_trip
Run round-trip source code generation on a given Jupyter notebook file path.