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

Method to_mimebundle

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

Source from the content-addressed store, hash-verified

84 self.config = dict(config) if config else {}
85
86 def to_mimebundle(self, fig_dict):
87 config = _get_jconfig(self.config)
88 if config:
89 fig_dict["config"] = config
90
91 json_compatible_fig_dict = json.loads(
92 to_json(fig_dict, validate=False, remove_uids=False)
93 )
94
95 return {"application/vnd.plotly.v1+json": json_compatible_fig_dict}
96
97
98# Static Image

Callers

nothing calls this directly

Calls 2

_get_jconfigFunction · 0.90
to_jsonFunction · 0.90

Tested by

no test coverage detected