I can start a Dash app by using app.run(debug=True)
Now, I need to send a filename to start the Dash App. The Dash App will load the file from the filename, and then do some calculations. How to do that/load filenames to start the app?
Did not find examples online
Depending on how you start the app, one option could be to use pass command line arguments? Another option could be environment variables.
Another option could be a “config” file.
Sounds good to be a solution.
I can write the filename to configure file, and then Dash.app can load a fixed configure file.
I am wondering whether the run function below allows me to deliver a parameter like a string for filename to be loaded
'_none'] = None,
OK. I finally solve it.
I create a class as wrapper, where Dash app is an attribute in the object.
The instance of this class will load files first, and then start the Dash app