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,

1 Like

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:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.