Closed
Description
Right now it seems like the only way to render in Databricks notebook is via displayHTML(fig.to_html())
.
From Slack:
Is displayHTML a built-in databricks thing? If so, then this could be done as ExternalRenderer renderer, where the side-effect is calling displayHTML. And we could use the presence of that function in the global namespace to automatically enable the renderer.
Basically identical to BrowserRenderer (
)plotly.py/packages/python/plotly/plotly/io/_base_renderers.py
Lines 659 to 707 in 168398e
but calling displayHTML instead of open_html_in_browser. We should probably extract a shared ExternalHtmlRenderer parent class too. Then add an auto-detect section like the colab one in. But it would check for a NameError on the displayHTML function.plotly.py/packages/python/plotly/plotly/io/_renderers.py
Lines 454 to 460 in 168398e
Metadata
Metadata
Assignees
Labels
No labels