exa.common.helpers.notebook_helper.repr_mimebundle

exa.common.helpers.notebook_helper.repr_mimebundle#

repr_mimebundle(node, include=None, exclude=None)#

Backing implementation of SettingNode._repr_mimebundle_().

Builds the lazy ipywidgets renderer when ipywidgets is importable; otherwise returns a static root-only summary. The widget bundle also carries cheap text/html / text/plain fallbacks so non-widget frontends still show something.

Parameters:
  • node (SettingNode) – The node to render.

  • include (set[str] | None) – MIME types to include, forwarded to the widget’s mimebundle.

  • exclude (set[str] | None) – MIME types to exclude, forwarded to the widget’s mimebundle.

Returns:

A MIME bundle mapping MIME type to representation.

Return type:

dict[str, Any] | tuple[dict[str, Any], dict[str, Any]]