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

Pandas DF and horirzontal scrollable output using the Output widget #61

Open
furian-rising opened this issue Apr 13, 2020 · 0 comments
Open

Comments

@furian-rising
Copy link

furian-rising commented Apr 13, 2020

I am having what I would consider a very minor issue but can't seem to wrestle it to the ground in the way I'd like to. Simply, I'd like to be able to display a horizontal scroll bar as part of an output widget when displaying large number of columns in a pandas data frame (53 columns). I can get the bar to appear if I use pixel units but not with what I would expect in 100% units. My code looks like:

layout = wd.Layout(overflow = 'scroll', width='100%', min_height='', max_height='640px')
out = wd.Output(layout=layout)
items = [out]
display(out)
with out:
display(df.describe())

My expectation would be that the dataframe would fill the width of the output cell, which it does, but the horizontal scroll bar doesn't show. If I crank this value down to 50% I get a scroll bar, but this isn't working as I would expect. If I open the output in a new view then I get what I would expect.

I've tied several variations including putting this int a VBox, with still no success, and I imagine I am missing something fairly simple. Any help would be much appreciated. Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant