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

html_repr of Table is not horizontally scrollable in jupyter lab, works in notebook (Firefox) #15439

Closed
maxnoe opened this issue Oct 5, 2023 · 7 comments

Comments

@maxnoe
Copy link
Member

maxnoe commented Oct 5, 2023

Description

A table with lots of columns displayed in a jupyter notebook is not scrollable horizontally (tested on firefox on Linux), the same works in the jupyter notebook interface.

This is a bit confusing, since the new notebook interface is also build on the lab components, I think.

Not sure if this is an astropy or a jupyter lab issue, first opening here.

Expected behavior

Table has a horizontal scrollbar

How to Reproduce

Open a jupyter notebook in lab and look at the output of a table with lots of columns / long column names.

Versions

Linux-3.10.0-957.el7.x86_64-x86_64-with-glibc2.17
Python 3.11.5 | packaged by conda-forge | (main, Aug 27 2023, 03:34:09) [GCC 12.3.0]
astropy 5.3.3
Numpy 1.24.4
pyerfa 2.0.0.3
Scipy 1.11.2
Matplotlib 3.7.3

@maxnoe maxnoe added the Bug label Oct 5, 2023
@pllim pllim added the table label Oct 5, 2023
@pllim
Copy link
Member

pllim commented Oct 5, 2023

Which Lab version?

@pllim
Copy link
Member

pllim commented Oct 5, 2023

Works for me on Lab 4.0.5

Screenshot 2023-10-05 122955

@saimn
Copy link
Contributor

saimn commented Oct 5, 2023

I noticed a similar issue with pandas, and here it is : jupyterlab/jupyterlab#14625 (Firefox only it seems)

@pllim
Copy link
Member

pllim commented Oct 5, 2023

Oh, right. I was using Chrome. So, nothing much we can do here in this package to fix this?

@pllim pllim changed the title html_repr of Table is not horizontally scrollable in jupyter lab, works in notebook html_repr of Table is not horizontally scrollable in jupyter lab, works in notebook (Firefox) Oct 5, 2023
@MridulS
Copy link
Contributor

MridulS commented Nov 11, 2023

This seems to be fixed upstream in JupyterLab v4.0.7

@pllim
Copy link
Member

pllim commented Nov 13, 2023

Thanks for the update, @MridulS !

@maxnoe , can you please confirm?

@maxnoe
Copy link
Member Author

maxnoe commented Nov 13, 2023

Updated jupyter lab from 4.0.5 to the latest 4.0.8 and it works fine! Closing here.

@maxnoe maxnoe closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants