-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
_repr_html_ creates extra scrollbar in ipython notebook #9268
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
Comments
pls show a picture of what you mean. |
That's exactly what I meant, thanks for posting. |
I was about to add a feature request to expose this max-height and max-width (of the frame) so that I could make it larger. If you want to look at a dataframe in iPython with many columns on a large screen, this option would be very useful. |
@kpweiler we do have those options already, if I'm understanding correctly. Have a a look at http://pandas.pydata.org/pandas-docs/dev/generated/pandas.set_option.html specifically @xLaszlo do you want to check on how this behaves with IPython 3.0 and 3.1? I think they made some changes w/ how scrolling is handled there. A PR making our styling optional would be great. |
@TomAugspurger if you look at the function, repr_html in core/Frame.py, you will notice that it returns hardcoded values for max-height and max-width. The display.max_columns and display.max_rows certainly allow all the columns and rows to be displayed, it just arbitrarily cuts them off with a scrollbar at 1000px and 1500px respectively. For the time being, I've just hacked at the pandas code to return max-width:none, but obviously, if I upgrade that will go away. I have changed my ipython notebook custom.css to have an infinitely resizable (in width) notebook, which I would like the pandas dataframe to follow. |
I think this was closed by #10232 |
This line: div style="max-height:1000px;max-width:1500px;overflow:auto;" is added to the output if the df is too large. This behaviour is handled in ipython anyway so should be removed or optional.
The text was updated successfully, but these errors were encountered: