This is a development version (9.14.0.dev) and may be unstable. Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.14.0.dev / 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