0

Dash & Plotly

I am creating a data analytics system. I have been exploring Dash and Plotly and realized that it has interactive graphs that are helpful for my project. However, Dash provides a way to write html in python itself. Is it possible to use an external html?

12th Oct 2020, 5:29 AM
Joey Lim
Joey Lim - avatar
1 Odpowiedź
+ 1
There's a component dash_dangerously_set_inner_html (needs to be installed separately) that allows a raw html string as its contents. https://github.com/plotly/dash-dangerously-set-inner-html If what you need is more functional templating - it's harder, since dash developers think it's better to use the python approach, but you can parse your html and generate the dash component tree from it, like proposed here https://github.com/plotly/dash/issues/118#issuecomment-356601914
26th Oct 2020, 12:30 PM
Volodymyr Chelnokov
Volodymyr Chelnokov - avatar