✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Serve a dash app to an already running WSGI server?

Hi,
I’m new to dash and WSGI servers, after reading the documentation (dash and flask) I don’t see a way to attach and serve a Dash app to an already running server.

Use case:
Have a server run (say on 127.0.0.1:8050) when my program starts. Then based on some user interactions, create a new dash app (a live updating graph) and serve it up on 127.0.0.1:8050/some_unique_app_name on the fly. The user can have many of these graphs running at once.

I’ve got my app running for one instance fine but if I want to generate a new app(same basic app but with different input parameters), I have to also create a new flask(WSGI) server every time.

Is there a good solution for this?

Looks like I can use URL Routing. Seems to do what I need https://dash.plotly.com/urls without the need for multiple dash apps