bundles / IPython 9.14.0.dev / 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 bytesThe raw data or a URL or file to load the data from
url: unicodeA URL to download the data from.
filename: unicodePath to a local file to load the data from.
metadata: dictDict of metadata associated to be the object when displayed
Aliases
-
IPython.display.DisplayObject.__init__