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

Method to_mimebundle

plotly/io/_base_renderers.py:69–71  ·  view source on GitHub ↗
(self, fig_dict)

Source from the content-addressed store, hash-verified

67 """
68
69 def to_mimebundle(self, fig_dict):
70 value = json.loads(to_json(fig_dict, validate=False, remove_uids=False))
71 return {"application/json": value}
72
73
74# Plotly mimetype

Callers 2

_build_mime_bundleMethod · 0.45
test_repr_mimebundleFunction · 0.45

Calls 1

to_jsonFunction · 0.90

Tested by 1

test_repr_mimebundleFunction · 0.36