MCPcopy Index your code
hub / github.com/plotly/plotly.py / html

Method html

plotly/matplotlylib/mplexporter/renderers/vega_renderer.py:114–121  ·  view source on GitHub ↗

Build the HTML representation for IPython.

(self)

Source from the content-addressed store, hash-verified

112 )
113
114 def html(self):
115 """Build the HTML representation for IPython."""
116 id = random.randint(0, 2**16)
117 html = '<div id="vis%d"></div>' % id
118 html += "<script>\n"
119 html += VEGA_TEMPLATE % (json.dumps(self.specification), id)
120 html += "</script>\n"
121 return html
122
123 def _repr_html_(self):
124 return self.html()

Callers 10

_repr_html_Method · 0.95
fig_to_vegaFunction · 0.95
"src/lib/notifier.js"Function · 0.80
aFunction · 0.80
plotly.min.jsFile · 0.80
bvtFunction · 0.80
"src/lib/notifier.js"Function · 0.80
"src/snapshot/tosvg.js"Function · 0.80
"src/lib/notifier.js"Function · 0.80
iFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected