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

Auto-fit cl.Dataframe() to content #1467

Merged
merged 2 commits into from
Oct 31, 2024
Merged

Conversation

hayescode
Copy link
Contributor

Changes Dataframe width to fit-content instead of hardcoded 650px to better handle different sized dataframes and fill out the UI.

Before:
image

After:
image

Builds on #1373 . Awesome job getting this going @desertproject ! Streamlit's implementation is envious (export to csv, copy/paste, full screen, etc.) but after digging into their code it looks completely manual and complex! It's a bit suprising there's not a library for displaying Pandas dataframes out there with these features!

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. frontend Pertains to the frontend. labels Oct 22, 2024
Copy link
Collaborator

@dokterbob dokterbob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@dokterbob dokterbob merged commit 389ef8c into Chainlit:main Oct 31, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Pertains to the frontend. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants