Nested Containers

I’m curious what the timeline is for being able to nest containers inside a Streamlit app. I want to do something like the following:

col1, col2 = st.beta_columns(2)
col3, col4 = col1.beta_columns(2)

I know others have come up with ways to accomplish this through writing custom Python classes + special html formatting “built-in” to the class, e.g - see here

If similar tooling is expected to be available in near-future releases, I don’t want to invest much time in piggy-backing off such third-party methods.

I have classes which write their Streamlit components given a context, which may just be the “top” streamlit context, or could instead be a column, beta_container, etc.

Thanks!

1 Like