render_to_html

Contents

render_to_html#

penzai.treescope.default_renderer.render_to_html(value: Any, roundtrip_mode: bool = False, ignore_exceptions: bool = False) str[source]#

Renders an object to HTML using the default renderer.

Parameters:
  • value – Value to render.

  • roundtrip_mode – Whether to render in roundtrip mode.

  • ignore_exceptions – Whether to catch errors during rendering of subtrees and show a fallback for those subtrees, instead of failing the entire renderer.

Returns:

HTML source code for the foldable representation of the object.