treescope.lowering

treescope.lowering#

Lowering of Treescope’s renderable parts to text or HTML.

This module defines the final logic that converts the output of node handlers and figure parts to the final Treescope representation.

Functions

collecting_deferred_renderings()

Context manager that defers and collects maybe_defer_rendering calls.

display_streaming_as_root(root_node, deferreds)

Displays a root node in an IPython notebook in a streaming fashion.

maybe_defer_rendering(main_thunk, ...[, ...])

Possibly defers rendering of a part in interactive contexts.

render_to_html_as_root(root_node[, ...])

Renders a root node to HTML.

render_to_text_as_root(root_node[, ...])

Renders a root node to text.