bundles / IPython 9.3.0 / IPython / core / oinspect / Inspector / _mime_format
function
IPython.core.oinspect:Inspector._mime_format
source: /IPython/core/oinspect.py :580
Signature
def _mime_format ( self , text : str , formatter = None ) → dict Summary
Return a mime bundle representation of the input text.
Extended Summary
if
formatteris None, the returned mime bundle hasa
text/plainfield, with the input text. atext/htmlfield with a<pre>tag containing the input text.
if
formatteris not None, it must be a callable transforming the input text into a mime bundle. Default values fortext/plainandtext/htmlrepresentations are the ones described above.
Note:
Formatters returning strings are supported but this behavior is deprecated.
Aliases
-
IPython.core.oinspect.Inspector._mime_format