Crate notebookx

Crate notebookx 

Source
Expand description

notebookx - Fast, lightweight notebook conversion library

This library provides a unified representation for Jupyter notebooks and supports conversion between different notebook formats.

§Example

use notebookx::{Notebook, Cell, NotebookFormat};

// Create a notebook programmatically
let mut notebook = Notebook::new();
notebook.cells.push(Cell::markdown("# Hello World"));
notebook.cells.push(Cell::code("print('Hello!')"));

// Serialize to ipynb format
let json = NotebookFormat::Ipynb.serialize(&notebook).unwrap();

Re-exports§

pub use formats::NotebookFormat;

Modules§

formats
Notebook format parsers and serializers.

Structs§

CellMetadata
Metadata associated with a cell.
CleanOptions
Options for cleaning a notebook.
KernelSpec
Kernel specification metadata.
LanguageInfo
Language information metadata.
Notebook
A Jupyter notebook.
NotebookMetadata
Notebook-level metadata.

Enums§

Cell
A cell in a Jupyter notebook.
MimeData
Data for a single MIME type in an output.
MultilineString
A string that may be serialized as a single string or array of lines.
NotebookError
Top-level error type for all notebookx operations.
Output
Output from executing a code cell.
ParseError
Errors that can occur during notebook parsing.
SerializeError
Errors that can occur during notebook serialization.
StreamName
Stream name for stream outputs.

Type Aliases§

MimeBundle
A bundle of MIME-typed data representations.