Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to embed a python dash app to a HTML webpage

Am looking for an example where people have tried embedding Dash app to an existing HTML/CS without letting the Dash app running. Ideally, the dash app should be triggered from within the HTML page. Something better than https://dash.plotly.com/integrating-dash which seems to expect the dash app to run in the background and connect the dash app URL.

like image 971
Amrit Kumar Tiwary Avatar asked Oct 17 '25 02:10

Amrit Kumar Tiwary


1 Answers

Thank you Emher, we managed to get the dash app embedded into a pre-made HTML page by parsing iframe (src = ) :

  1. we had a flask that runs the companies wireframe written in CSS & HTML.
  2. used 'server' parameter to piggyback on flask
  3. added one iframe (src = Dash app) to the HTML layout for each data science dash app we have.

Will check out 'webdash' as well for creating lightweight POC

like image 139
Amrit Kumar Tiwary Avatar answered Oct 18 '25 20:10

Amrit Kumar Tiwary



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!