(self, fig_dict)
| 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 |
nothing calls this directly
no test coverage detected