St.columns() replacement for streamlit 0.78

Summary

For a known issue due to lower Rstudio connect version, I have to use streamlit 0.78 to deploy the app on the connect. It looks like the st.columns() was not yet available for the 0.78.

I’m using it to create equal space for charts on my dashboard. Is there a replacement of the columns() I can use in the 0.78 version streamlit?

Sorry I’m new in streamlit development and this is my first post.
Thank you for your time

Hi there!
No worries about being new! :smile:

I tried checking and it seems like st.beta_columns can be used in the 0.78 version!
The code can look something like this:

col1,col2=st.beta_columns(2)
with col1:
   Item in row1

with col2:
   Item in row1

with col1:
  Item in row2

with col2:
   item in row2

Hope this helps!

1 Like

Hi,
Thank you for your solution! It works.

However, I discovered more errors relevant to the version compatibility issues. I eventually convinced my manager to go with the latest streamlit version and community cloud for deployment. So that I don’t have to worry about it anymore.

Thank you and have a good day.

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