Notify a user

How to notify user that the code is running in streamlit? I edit the theme so the “running” icon is not clearly shown in the top right corner.

You can use a while-loop to show an animation while something is loading. So something like:

while (condition):
       st.image('https://media.giphy.com/media/gu9XBXiz60HlO5p9Nz/giphy.gif')

So while a function is doing its thing you can display something for the user. If statements also work … If button == True: st.image(‘https://media.giphy.com/media/gu9XBXiz60HlO5p9Nz/giphy.gif’)

If you mean audio feedback then there is also a python library for that e.g. winsound. There you can also apply the same logic as before.

Edit: And don’t forget “show the community” is more to showcase your finished work rather than discussing specific problems. “Using streamlit” is for discussing problems.

Thanks for the solution. I will follow the point you said.