-
Notifications
You must be signed in to change notification settings - Fork 83
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
FR: scrollable tables with sticky headers #585
Comments
A workaround I'm using at the moment is to inject some custom CSS like:
|
this is interesting! - Can you show the code with the GT object too? |
Just the CSS snippet is enough, you don't need any other changes (with the GT object). |
sure but can you show me how it's put together? if i take this example, how can i add your CSS snippet to this to make the sticky and scrollable?: Sample data for the DataFramedata = { Create the DataFramedf = pd.DataFrame(data) GT(df) |
You just copy the snippet from #585 (comment), put it in a different code cell and run it. For example, you might have 3 code cells like:
(Note that this snippet is slightly different from the snippet above -- I just figured why not generalize it to any table and its header, so this works for native Polars DataFrame renders as well.)
|
Prework
Proposal
I started using great-tables in Jupyter Notebooks recently and would love to have a knob to make large tables scrollable natively with sticky headers, so it's easier to parse the data. I didn't find any similar open issues but #578.
The text was updated successfully, but these errors were encountered: