'Build the HTML representation for IPython.'

def html(self):

    id = random.randint(0, (2 ** 16))
    html = ('<div    id="vis%d"></div>' % id)
    html += '<script>\n'
    html += (VEGA_TEMPLATE % (json.dumps(self.specification), id))
    html += '</script>\n'
    return html
