render_to_text

Contents

render_to_text#

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

Renders an object to text 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:

A text representation of the object.