I am writing a jupyter lab extension that has a menu dropdown with different buttons. If you click on the buttons, it will open up a new terminal and execute a specific script. I want to know when the script is done running in that terminal so I can shut it down. How can I know when it is done? In the meantime, I have just set a timer for x minutes, and for the terminal to close after the time is up.
Asked
Active
Viewed 11 times