'return the embed iframe'

def _repr_html_(self):

    if self.params:
        try:
            from urllib.parse import urlencode
        except ImportError:
            from urllib import urlencode
        params = ('?' + urlencode(self.params))
    else:
        params = ''
    return self.iframe.format(src=self.src, width=self.width, height=self.height, params=params)
