Close Streamlit App with button click

Hi,

Is there any functionality with which I can close the streamlit app (browser tab, command prompt) when a button is clicked.

Best,
Debayan

Hi @DebayanPaul93, I don’t think this functionality has been built in as yet. A Streamlit insider can opine further.

Cheers

Hi,

anyone with a solution/work-around?

Your issue has been asked about before. Ref Terminating Streamlit server from within the code · Issue #668 · streamlit/streamlit · GitHub.

You could probably try to close the window with Selenium.

Cheers