I’m new to Streamlit and loving the experience so far, I was able to create an interface so quickly and painlessly!
As we are testing the interface, we noticed that the process is still running after we click the Stop button at the top right corner of the page, the one appears if there is any process ongoing. By its location we expect it to stop the execution when clicked.
After some reading I’ve learned that there is a stop button I can implement, but it seems it is a separate button from the aforementioned one.
Is there any additional implementation needed for the Stop button by the menu bar to function as intended? Or I misunderstood its functionality?
As I understand it, the Stop button works in the same way you might have for the operating system, which is to say it sends a signal that the process should be stopped. Unfortunately, depending on the process, the computer/server might not respond right away.
st.stop is a different type of functionalty, where you want your code to stop executing upon some condition. For example, you might have a game where once the solution is reached, you terminate a while loop. So you’re right, the difference between this and the menu button are for different things.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.