Skip to content
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

st.write: allow setting bounding box for output (or new scroll box widget) #996

Closed
JohnReid opened this issue Jan 20, 2020 · 5 comments
Closed
Labels
area:layout status:awaiting-team-response type:enhancement Requests for feature enhancements or new features

Comments

@JohnReid
Copy link

JohnReid commented Jan 20, 2020

Problem

I have a large nested dictionary of data I wish to present in my streamlit application. However I don't wish to have it take up much of the application's screen area as the user's attention should be on a related image. Ideally I would like the user to be able to scroll to the relevant part of the data whilst keeping the image on screen.

Solution

Add a scroll box widget (of fixed width and height perhaps) to streamlit into which I can place my data structure.


Community voting on feature requests enables the Streamlit team to understand which features are most important to our users.

If you'd like the Streamlit team to prioritize this feature request, please use the 👍 (thumbs up emoji) reaction in response to the initial post.

@JohnReid JohnReid added the type:enhancement Requests for feature enhancements or new features label Jan 20, 2020
@nthmost
Copy link
Contributor

nthmost commented Jan 22, 2020

Hey @JohnReid ,

Thanks for the feature suggestion! I do think this would be a neat ability to give people when they display data.

Just so we understand where you're coming from -- are you simply doing st.write on all of the data in question?

If that's your approach, then I'm thinking we could implement keyword-based controls in st.write that set the boundaries of the text box and use the CSS overflow property to let the browser create scroll bars.

@JohnReid
Copy link
Author

Hi @nthmost, yes I am doing a st.write and your solution sounds simpler and better :). I don't know anything about CSS overflow but I could probably work that out.
Thanks!

@nthmost nthmost changed the title Add scroll box widget st.write: allow setting bounding box for output (or new scroll box widget) Feb 24, 2020
@inspectorG4dget
Copy link

Can such scrolling be added to not just st.write, but also to all container types?

@antopj
Copy link

antopj commented Oct 4, 2022

Big Thanks for streamlit !

@nthmost
I wish we had the option to make all text elements/display elements were scrollable.

Long output texts, Long list of checkboxes, buttonlists, etc..

@jrieke
Copy link
Collaborator

jrieke commented Jun 21, 2023

I think we would solve this by the solution proposed in #2169. Closing here since that issue has more upvotes.

@jrieke jrieke closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:layout status:awaiting-team-response type:enhancement Requests for feature enhancements or new features
Projects
None yet
Development

No branches or pull requests

7 participants