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

Class JsonRenderer

plotly/io/_base_renderers.py:61–71  ·  view source on GitHub ↗

Renderer to display figures as JSON hierarchies. This renderer is compatible with JupyterLab and VSCode. mime type: 'application/json'

Source from the content-addressed store, hash-verified

59
60
61class JsonRenderer(MimetypeRenderer):
62 """
63 Renderer to display figures as JSON hierarchies. This renderer is
64 compatible with JupyterLab and VSCode.
65
66 mime type: 'application/json'
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 1

_renderers.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected