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

DataGrid doesn't display table, only text #526

Closed
u3Izx9ql7vW4 opened this issue Jul 9, 2024 · 3 comments
Closed

DataGrid doesn't display table, only text #526

u3Izx9ql7vW4 opened this issue Jul 9, 2024 · 3 comments

Comments

@u3Izx9ql7vW4
Copy link

u3Izx9ql7vW4 commented Jul 9, 2024

Describe the bug
Calling DataGrid() in JupyterLab cell prints

DataGrid(auto_fit_params={'area': 'all', 'padding': 30, 'numCols': None}, corner_renderer=None, default_render…

but doesn't display any table

To Reproduce
Steps to reproduce the behavior:
Run pip install ipydatagrid
Create a pandas dataframe in cell and run cell

from ipydatagrid import DataGrid

df = pd.DataFrame(...)
DataGrid(df)

Expected behavior
Should display table

Screenshots
Capture d’écran 2024-07-09 à 16 27 39

Environment (please complete the following information):

  • Operating System and Version: MacOS 14.5
  • Browser [e.g. Firefox, Safari] (if applicable): JupyterLab Desktop

Additional context
Installed with pip install ipydatagrid

@xbrianh
Copy link

xbrianh commented Nov 10, 2024

I see the same issue with ipydatagrid 1.3.2

@xbrianh
Copy link

xbrianh commented Nov 10, 2024

This was resolved for me with:

pip install jupyter_contrib_nbextensions

and restarting my notebook server.

@martinRenou
Copy link
Member

martinRenou commented Nov 10, 2024

Note for the future reader that installing jupyter_nbcontrib_nbextensions will have no impact on installation issues for ipydatagrid. I would actually recommend not doing this as this is probably outdated now that jupyterlab is the official frontend for jupyter, and latest jupyter notebook uses lab extensions, not nbextensions.

Restarting the Notebook server is important though. Otherwise the ipydatagrid extension is not loaded by the server.

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

3 participants