posit-dev / py-shinywidgets

Render ipywidgets inside a PyShiny app
MIT License
41 stars 2 forks source link

Support non-ipywidgets that have a `_repr_html_()` #117

Closed cpsievert closed 7 months ago

cpsievert commented 7 months ago

Notable cases of this would be folium, itables, and pyecharts.

As pointed out in https://github.com/posit-dev/py-shiny/issues/303#issuecomment-1517353668, shiny's @render.ui should probably know to do ui.HTML(x._repr_html_()) and I suppose @render_widget could do the same (maybe with a warning that points to using @render.ui