parameters: (self, data=None, url=None, filename=None, metadata=None)
docstring: Create a display object given raw data.
  
          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. If
  
          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
docstring_summary: Create a display object given raw data.
docstring_tokens: Create a display object given raw data .
function: def __init__(self, data=None, url=None, filename=None, metadata=None):
          """Create a display object given raw data.
  
          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. If
  
          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
          """
          if isinstance(data, (Path, PurePath)):
              data = str(data)
  
          if data is not None and isinstance(data, str):
              if data.startswith('http') and url is None:
                  url = data
                  filename = None
                  data = None
              elif _safe_exists(data) and filename is None:
                  url = None
                  filename = data
                  data = None
  
          self.url = url
          self.filename = filename
          # because of @data.setter methods in
          # subclasses ensure url and filename are set
          # before assigning to self.data
          self.data = data
  
          if metadata is not None:
              self.metadata = metadata
          elif self.metadata is None:
              self.metadata = {}
  
          self.reload()
          self._check_data()
function_tokens: def __init__ ( self , data = None , url = None , filename = None , metadata = None ) : if isinstance ( data , ( Path , PurePath ) ) : data = str ( data ) if data is not None and isinstance ( data , str ) : if data . startswith ( 'http' ) and url is None : url = data filename = None data = None elif _safe_exists ( data ) and filename is None : url = None filename = data data = None self . url = url self . filename = filename # because of @data.setter methods in # subclasses ensure url and filename are set # before assigning to self.data self . data = data if metadata is not None : self . metadata = metadata elif self . metadata is None : self . metadata = { } self . reload ( ) self . _check_data ( )