St.empty in a column

Hi,

It is easy to use st.empty for passing multiple messages into. Eg. Start with:

placeholder = st.empty()

And then pass multiple statements

placeholder.info(‘msg 1’)
placeholder.info(‘msg 2’)

as and when needed (further down in your code)…

But how does one create a st.empty in a column and then pass multiple messages to it (as we can do above)? Suppose I start with:

c1, c2 = st.columns(2)

Then?

c2.placeholder.info(‘msg 1’)
c2.placeholder.info(‘msg 2’)

does not work as required.

Your help will be much appreciated.

Thanks in advance,

You could try the solution proposed in Unable to clear or delete columns from 'beta_columns' - #4 by Charly_Wargnier.

In my case it did work, and didn’t need explicitly emptying the placeholder (placeholder.empty()).

Hope it works for you as well! Good luck!

Thanks @Hristo , I will try this.

God bless :slight_smile: