Pandas DF and horirzontal scrollable output using the Output widget
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,