St.empty for images

Hi @Bonian, welcome to the Streamlit community!

Yes, what you are asking is how st.empty is intended to work. However, you should have the st.empty container defined outside of the loop if you want to keep reusing the same position. Our documentation has a couple of examples:

Best,
Randy

1 Like