Hi all. I have coded a python script that launches a streamlit dashboard app. I have a GUI separately (coded in python) that calls that script when the user clicks a button. However, if the browser tab is closed (e.g. by pressing CTRL-W) the GUI hangs because the streamlit script is still running in the background. How do I get the script to stop if the browser tab is closed?
I should add that less technical solutions and hacks are encouraged as I don’t want to dig into Windows operations, etc. Thanks so much!