book

class PlayExtension(renderable: SupportsRender | SupportsRenderMemo, render_kwargs)

Bases: Extension

class play_block(rawsource='', text='', *children, **attributes)
classmethod render(node, output_path)
classmethod setup_console(console, monkeypatch)

Perform console setup tasks before executing a suite of code blocks, e.g. monkeypatching IO operations to allow media capture.

classmethod setup_sphinx(app)

Setup Sphinx, e.g. register custom nodes and visitors.

to_docutils()
static visit_block_html(self, node)
class PlotExtension(plottable, **kwargs)

Bases: Extension

class plot_block(rawsource='', text='', *children, **attributes)
classmethod render(node, output_path)
classmethod setup_console(console, monkeypatch)

Perform console setup tasks before executing a suite of code blocks, e.g. monkeypatching IO operations to allow media capture.

classmethod setup_sphinx(app)

Setup Sphinx, e.g. register custom nodes and visitors.

to_docutils()
static visit_block_html(self, node)