{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / formatters / PNGFormatter

MetaHasTraits

IPython.core.formatters:PNGFormatter

source: /dev/ipython/IPython/core/formatters.py:822

Signature

def PNGFormatter(**kwargs: t.Any) → None

Summary

A PNG formatter.

Extended Summary

To define the callables that compute the PNG representation of your objects, define a _repr_png_ 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 PNG data, not base64 encoded.

Aliases

  • IPython.core.formatters.PNGFormatter