AST Nodes¶
AST nodes to designate notebook components.
-
class
myst_nb.nodes.CellNode(rawsource='', *children, **attributes)¶ Bases:
docutils.nodes.containerRepresent a cell in the Sphinx AST.
-
class
myst_nb.nodes.CellInputNode(rawsource='', *children, **attributes)¶ Bases:
docutils.nodes.containerRepresent an input cell in the Sphinx AST.
-
class
myst_nb.nodes.CellOutputNode(rawsource='', *children, **attributes)¶ Bases:
docutils.nodes.containerRepresent an output cell in the Sphinx AST.
-
class
myst_nb.nodes.CellOutputBundleNode(outputs, renderer: str, metadata=None, **attributes)¶ Bases:
docutils.nodes.containerRepresent a MimeBundle in the Sphinx AST, to be transformed later.
-
copy()¶ Return a copy of self.
-
property
metadata¶ The cell level metadata for this output.
-
property
outputs¶ The outputs associated with this cell.
-
property
renderer¶ The cell level metadata for this output.
-