Amrit Kumar Tiwary
Amrit Kumar Tiwary

Reputation: 83

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.

Upvotes: 4

Views: 5134

Answers (1)

Amrit Kumar Tiwary
Amrit Kumar Tiwary

Reputation: 83

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

Upvotes: 2

Related Questions