bundles / IPython 9.11.0 / IPython / core / formatters / JPEGFormatter
MetaHasTraits
IPython.core.formatters:JPEGFormatter
source: /IPython/core/formatters.py :841
Signature
def JPEGFormatter ( ** kwargs : t.Any ) → None Summary
A JPEG formatter.
Extended Summary
To define the callables that compute the JPEG representation of your objects, define a _repr_jpeg_ method or use the for_type or for_type_by_name methods to register functions that handle this.
The return value of this formatter should be raw JPEG data, not base64 encoded.
Aliases
-
IPython.core.formatters.JPEGFormatter