I have a Dash App I'm running locally on a few machines through waitress, and I want it to open by clicking a simple batch file. I would lke to improve two things: that it'll open chrome only after the Flask server is running already, and if possible that it won't display the cmd window at all.
Currently I have this:
@echo off
start chrome http://127.0.0.1:8050
python route "script route"
exit
It works but it opens chrome first and I have to refresh a few times until the server is up. And if I put chrome under the python command It never opnes because the python command is never truly "finished" until you close the cmd window and the app stops (which is why I think it won't be possible to hide the cmd window completely)
I'll appreciate any help you guys can give me.
When you can use the some countdown time before running the server
And about hiding the cmd this can be achieved by using cmdow https://ritchielawrence.github.io/cmdow/