IPython Documentation

Table Of Contents

Previous topic

Module: html.widgets.widget_float

Next topic

Module: html.widgets.widget_int

This Page

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”).