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

bundles / IPython 9.5.0 / IPython / core / display / DisplayObject / __init__

function

IPython.core.display:DisplayObject.__init__

source: /IPython/core/display.py :297

Signature

def   __init__ ( self data = None url = None filename = None metadata = None )

Summary

Create a display object given raw data.

Extended Summary

When this object is returned by an expression or passed to the display function, it will result in the data being displayed in the frontend. The MIME type of the data should match the subclasses used, so the Png subclass should be used for 'image/png' data. If the data is a URL, the data will first be downloaded and then displayed.

Parameters

data : unicode, str or bytes

The raw data or a URL or file to load the data from

url : unicode

A URL to download the data from.

filename : unicode

Path to a local file to load the data from.

metadata : dict

Dict of metadata associated to be the object when displayed

Aliases

  • IPython.display.DisplayObject.__init__