render

package
v0.0.0-...-78d0a57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(notebook Notebook) string

Render accepts a Notebook struct and returns a rendered string

Types

type Cell

type Cell struct {
	CellType       string   `json:"cell_type"`
	ExecutionCount int      `json:"execution_count"`
	Source         []string `json:"source"`
	Outputs        []Output `json:"outputs"`
}

Cell is the basic building block of a Notebook structure

type Notebook

type Notebook struct {
	Cells []Cell `json:"cells"`
}

Notebook contains Jupyter Notebook definitions

type Output

type Output struct {
	Name       string   `json:"name"`
	OutputType string   `json:"output_type"`
	Text       []string `json:"text"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL