def METHOD_NAME(self):
    """Build the HTML representation for IPython."""
    id = random.randint(0, 2**16)
    METHOD_NAME = '<div id="vis%d"></div>' % id
    METHOD_NAME += "<script>\n"
    METHOD_NAME += VEGA_TEMPLATE % (json.dumps(self.specification), id)
    METHOD_NAME += "</script>\n"
    return METHOD_NAME