visualize#

Item.visualize(width: int | float = 0, height: int | float = 0, *, context=None, request=None) → None#

Display the rendered item inline.

Parameters:
widthint or float, optional

Iframe width. When set to zero, the width is derived as described by get_iframe().

heightint or float, optional

Iframe height. When set to zero, the height is derived as described by get_iframe().

contextdict or None, optional

Context dictionary passed to render().

requestHttpRequest or None, optional

Django request object passed to render(), if available.

Raises:
RuntimeError

If IPython is unavailable.