Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertFile ¶
ConvertFile reads the file at the provided path and converts its content (the Jupyter Notebook JSON) to HTML.
Types ¶
type Cell ¶
type Cell struct { CellType string `json:"cell_type"` ExecutionCount *int `json:"execution_count,omitempty"` Source []string `json:"source"` Outputs []Output `json:"outputs,omitempty"` }
Cell is a single Jupyter Notebook cell.
type LanguageInfo ¶
type LanguageInfo struct {
FileExtension string `json:"file_extension"`
}
LanguageInfo provides details about the programming language of the Jupyter Notebook kernel.
type Metadata ¶
type Metadata struct {
LanguageInfo LanguageInfo `json:"language_info"`
}
Metadata contains additional information about the Jupyter Notebook.
type Output ¶
type Output struct { OutputType string `json:"output_type"` ExecutionCount *int `json:"execution_count,omitempty"` Text []string `json:"text,omitempty"` Data OutputData `json:"data,omitempty"` Traceback []string `json:"traceback,omitempty"` }
Output is the result of a code cell's execution in a Jupyter Notebook.
type OutputData ¶
type OutputData struct { TextHTML []string `json:"text/html,omitempty"` ApplicationPDF *string `json:"application/pdf,omitempty"` TextLaTeX *string `json:"text/latex,omitempty"` ImageSVGXML []string `json:"image/svg+xml,omitempty"` ImagePNG *string `json:"image/png,omitempty"` ImageJPEG *string `json:"image/jpeg,omitempty"` TextMarkdown []string `json:"text/markdown,omitempty"` TextPlain []string `json:"text/plain,omitempty"` }
OutputData can contain the cell output in various data types. Source: https://github.com/jupyter/nbconvert/blob/c837a22d44d98f6a58d1934bd85af1506df48f21/nbconvert/utils/base.py#L16
Click to show internal directories.
Click to hide internal directories.