Skip to main content

read_notebook

Function read_notebook 

Source
pub fn read_notebook(path: &Path) -> Result<Vec<CellInfo>>
Expand description

Read and parse the .ipynb at path, returning a CellInfo summary of every cell (Phase 21.4 notebook_read).

A missing file, a file that is not valid JSON, or a JSON document whose nbformat is not 4 is a clean DataError — never a panic. (A genuinely empty cells array is a valid notebook and yields an empty Vec.)