Discover Packages
github.com/hupe1980/golc
integration
nbformat
package
Version:
v0.0.86
Opens a new window with list of versions in this module.
Published: Dec 7, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package nbformat provides utilities to read and parse Jupyter Notebook (nbformat) files.
type Cell struct {
CellType string `json:"cell_type"`
Source string `json:"source"`
Outputs []Output `json:"outputs"`
}
Cell represents a single cell within a Jupyter Notebook.
type Notebook struct {
Cells []Cell `json:"cells"`
}
Notebook represents a Jupyter Notebook containing multiple cells.
ReadNBFormat reads and parses a Jupyter Notebook from the given io.Reader.
It returns a pointer to the Notebook struct containing the parsed content.
If there is an error during reading or parsing, it returns an error.
type Output struct {
ErrorName string `json:"ename"`
ErrorValue string `json:"evalue"`
Traceback []string `json:"traceback"`
OutputType string `json:"output_type"`
Text []string `json:"text"`
}
Output represents the output of a cell in a Jupyter Notebook.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.