environment/lib/python2.7/site-packages/IPython/core/displaypub.py
def _validate_data(self, source, data, metadata=None):
        """Validate the display data.

        Parameters
        ----------
        source : str
            The fully dotted name of the callable that created the data, like
            :func:`foo.bar.my_formatter`.
        data : dict
            The formata data dictionary.
        metadata : dict
            Any metadata for the data.
        """

        if not isinstance(source, basestring):
            raise TypeError('source must be a str, got: %r' % source)
        if not isinstance(data, dict):
            raise TypeError('data must be a dict, got: %r' % data)
        if metadata is not None:
            if not isinstance(metadata, dict):
                raise TypeError('metadata must be a dict, got: %r' % data)
def _validate_data(self, source, data, metadata=None):
        if not isinstance(source, basestring):
            raise TypeError('source must be a str, got: %r' % source)
        if not isinstance(data, dict):
            raise TypeError('data must be a dict, got: %r' % data)
        if metadata is not None:
            if not isinstance(metadata, dict):
                raise TypeError('metadata must be a dict, got: %r' % data)
def _validate_data ( self , source , data , metadata = None ) : if not isinstance ( source , basestring ) : raise TypeError ( 'source must be a str, got: %r' % source ) if not isinstance ( data , dict ) : raise TypeError ( 'data must be a dict, got: %r' % data ) if metadata is not None : if not isinstance ( metadata , dict ) : raise TypeError ( 'metadata must be a dict, got: %r' % data )
Validate the display data.

        Parameters
        ----------
        source : str
            The fully dotted name of the callable that created the data, like
            :func:`foo.bar.my_formatter`.
        data : dict
            The formata data dictionary.
        metadata : dict
            Any metadata for the data.
Validate the display data .