This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: html.widgets.widget_image

Image class.

Represents an image in the frontend using a widget.

1 Class

class IPython.html.widgets.widget_image.Image(*pargs, **kwargs)

Bases: IPython.html.widgets.widget.DOMWidget

Displays an image as a widget.

The value of this widget accepts a byte string. The byte string is the raw image data that you want the browser to display. You can explicitly define the format of the byte string using the format trait (which defaults to “png”).