docstr: Build the HTML representation for IPython.
docstr_tok: ["Build","the","HTML","representation","for","IPython","."]
code: def html(self):
      """Build the HTML representation for IPython."""
      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
  
file_path: catboost/contrib/python/plotly/py3/plotly/matplotlylib/mplexporter/renderers/vega_renderer.py
imports: import warnings
  import json
  import random
  from .base import Renderer
  from ..exporter import Exporter
label_desc: Use image node_id 2 for calling the VegaHTML obj's underlying member method code with example usage: obj.html() and returns: html