Hi,
Yes, you’ll want to remove the hamburger menu in order to do that. In doing so, not only will the stop button be removed but also the running notification on the same top bar.
This forum post should get you started:
Summary
When a streamlit script is running, the user can click on the “Stop” button left of the menu hamburger, or press ctrl-c to stop streamlit altogether. I would like to run some code when this happens, in order to do some clean up before streamlit stops. Is there a way to do that please?
I am implementing something using asyncio per this thread , and when the user stops the processing, my asyncio thread is left hanging.
Thank you.
And this too:
Anybody has any idea how to remove the padding top of the starting page.
There is a lot of unnecessary white space left at the top.
Inspecting the layout, there is a padding attribute of the .css-1y0tads class. If ones removes it, it somehow does what I need.
However, I am not sure where to insert inside my code, as I guess these are defaults .css attributes.
Any ideas??