-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add height
and key
to st.columns
#10023
Labels
Comments
iscoyd
added
the
type:enhancement
Requests for feature enhancements or new features
label
Dec 13, 2024
[like] Vijay Nadkarni reacted to your message:
…________________________________
From: github-actions[bot] ***@***.***>
Sent: Friday, December 13, 2024 11:57:03 PM
To: streamlit/streamlit ***@***.***>
Cc: Vijay Nadkarni ***@***.***>; Author ***@***.***>
Subject: Re: [streamlit/streamlit] Combine the capabilities of st.columns() and st.container() into a single API function (Issue #10023)
To help Streamlit prioritize this feature, react with a 👍 (thumbs up emoji) to the initial post.
Your vote helps us identify which enhancements matter most to our users.
[Visits]<https://camo.githubusercontent.com/b171b0adcd88a3425aedc2c17122b0fee3ccd405b6333589930cb3a686cf7fa4/68747470733a2f2f686974732e736565796f756661726d2e636f6d2f6170692f636f756e742f696e63722f62616467652e7376673f75726c3d68747470732533412532462532466769746875622e636f6d25324673747265616d6c697425324673747265616d6c69742532466973737565732532463130303233267469746c653d76697369747326656467655f666c61743d66616c7365>
—
Reply to this email directly, view it on GitHub<#10023 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BIGKHK7RAMFV6RBMTUWEIRT2FNX47AVCNFSM6AAAAABTS56GGOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBSGU3DIMRQGM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
FYI we just added a I'll update the title of this issue to make it a bit more explicit. |
jrieke
changed the title
Combine the capabilities of st.columns() and st.container() into a single API function
Add Dec 16, 2024
height
and key
to st.columns
Thank you, that will help greatly! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Checklist
Summary
It would be great if the features of st.columns() and st.container() could be combined in a single API call, say st.columns(). For example, if one wants to create two scrollable fixed-height side-by-side columns one has to first instantiate two columns with cols = st.columns(2), and then create a st.container() within each column for a specified fixed height.
Why?
Presently, st.columns() allows one to create multiple columns side by side, but one can neither make them fixed height scrollable. And with st.container(), one can make the container fixed height & scrollable, but there is no way to place containers side by side. This is frustrating when writing code since one has to remember these two types of behavior for the two functions when they could easily be rolled into a single function.
How?
The present st.columns() API call is:
st.columns(spec, *, gap="small", vertical_alignment="top", border=False)
and the st.container() API call is:
st.container(*, height=None, border=None, key=None)
Simply add to st.columns() three of the parameters of st.container(), namely height, border and key. If you can do this this, there will be no need for st.container(), which will make it far easier for programmers.
Additional Context
No response
The text was updated successfully, but these errors were encountered: