Hosting a dashboard on my Duda website

I’ve taken a look at this post, which is helpful, but my question is a bit more nuanced.

I built a Dash app locally. The app has the user load data via the Upload button, select various parameters and then hit run. It then splits the data, builds a model on the train set, predicts on the test set and outputs a visualization.

My goal is to add this dashboard onto my own website that is administered by Duda. The site itself is on my domain but Duda controls the design and administers it. I reached out to their support and they told me that I should be able to do what I want by embedding the app into a blank HTML sheet as long as I can use iframes or HTML/JS codes.

I see that the simple way is to just host the app on Heroku, but I would really prefer to host it directly on my own website. If this is possible, how would I do it?

As an aside, I’m keeping it simple and ignoring considerations like potential multiple simultaneous users, saving the trained models for persistence, etc for now.

I also have access to an Azure account, that may be relevant.

I’m not familiar with Duda, but I looked at their website, and it seems like they only host static pages (HTML/CSS/JS). Dash requires a Python process to work, so you need to ask Duda support if you can do that.

If not, the only solution is to host it elsewhere and add an iframe from your Duda website to the Dash app.

Heroku is one option (but it doesn’t have a free plan anymore), Ploomber is another option.

@edub thanks for the explanation. I’m considering all options.

What if I were to migrate my website off of Duda directly to my self-hosting platform (Dreamhost). The website would then essentially be html / javascript. What would be the method for embedding the plotly dash app into the site in that case?