bundles / IPython 9.11.0 / IPython / core / formatters / MimeBundleFormatter
MetaHasTraits
IPython.core.formatters:MimeBundleFormatter
source: /IPython/core/formatters.py :988
Signature
def MimeBundleFormatter ( ** kwargs : t.Any ) → None Members
Summary
A Formatter for arbitrary mime-types.
Extended Summary
Unlike other _repr_<mimetype>_ methods, _repr_mimebundle_ should return mime-bundle data, either the mime-keyed data dictionary or the tuple (data, metadata). Any mime-type is valid.
To define the callables that compute the mime-bundle representation of your objects, define a _repr_mimebundle_ method or use the for_type or for_type_by_name methods to register functions that handle this.
Aliases
-
IPython.core.formatters.MimeBundleFormatter