You could do like this:
In your main loop, make sure to specify that debug mode is false, i.e:
if __name__ == '__main__':
, also make sure that you have declared a variable to be the Dash app server:
server = app.server #variable name serve is just an example. name it whatever...
Then make a simple serving script using your favorite python module for this, I use the module ‘waitress’. My waitress (serving) script looks like this (lets name the script ‘server.py’:
from waitress import serve #import the serve function of waitress
from app import server #import the "server" part of the Dash app from my main script, which is named app.py
serve(server) #use waitress as server
Then, by running python server.py you will not be in development mode, but see something like:
Punching whatever URL you get into your favorite browser™ will get you your dash application.
I am not the expert to explain the difference. I know that it is something along that the Dash library has a built-in Flask function such that with you simply python app.py without further ado, a small server environment is created to launch the app. This is what is called the Development server i think.