You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / core / formatters / PNGFormatter

MetaHasTraits

IPython.core.formatters:PNGFormatter

source: /IPython/core/formatters.py :823

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