drasil-data-formats-0.0.1: A framework for code and document generation for scientific software
Safe HaskellNone
LanguageGHC2024

Drasil.Data.Formats.Jupyter.Render

Synopsis

Documentation

data CellSourceRenderStyle Source #

JSON representation of cell source.

Constructors

ListOfLines

One string per line, with a trailing LF.

SingleString

One string containing the whole cell.

data NotebookRenderOptions Source #

Notebook format options, separate from JSON layout options. Version numbers label the output; they do not convert the notebook structure.

defaultNotebookRenderOptions :: NotebookRenderOptions Source #

Use notebook format 4.4 and a list of lines per cell by default.

notebookToJSON :: NotebookRenderOptions -> Notebook -> JSON Source #

Encode a new notebook using the selected version and source representation.

renderNotebook :: NotebookRenderOptions -> JSONRenderOptions -> Notebook -> Doc ann Source #

Render a notebook with the shared JSON renderer.