quantopian / qgrid

An interactive grid for sorting, filtering, and editing DataFrames in Jupyter notebooks
Apache License 2.0
3.05k stars 421 forks source link

update for ipywidgets 8 compatibility #376

Open qci-amos opened 2 years ago

qci-amos commented 2 years ago

according to https://github.com/jupyter-widgets/ipywidgets/issues/3031

this line should have its parenthesis removed:

https://github.com/quantopian/qgrid/blob/877b420d3bd83297bbcc97202b914001a85afff2/qgrid/grid.py#L524

This is broken now with ipywidgets version 8.0 released yesterday

craustin commented 2 years ago

We also see this error when creating a conda env w/ qgrid=1.3.1 and the latest jupyter libraries:

ERROR conda.core.link:_execute(730): An error occurred while installing package 'conda-forge::qgrid-1.3.1-pyhd8ed1ab_3'.
Rolling back transaction: ...working... done

LinkError: post-link script failed for package conda-forge::qgrid-1.3.1-pyhd8ed1ab_3
location of failed script: /home/caustin/miniconda3/envs/test/bin/.qgrid-post-link.sh
==> script messages <==
<None>
==> script output <==
stdout:
stderr:
return code: 1

Pinning ipywidgets<8.0.0 fixes the above, if anyone wants to work-around this.

For reference, the failing .qgrid-post-link.sh script looks like this: "${PREFIX}/bin/jupyter-nbextension" enable qgrid --py --sys-prefix