quantopian / qgrid

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

Here, working version #383

Open skapin opened 1 year ago

skapin commented 1 year ago

I made a working conda version for ipywidget 8 and jupyter lab 3.x

https://anaconda.org/eshard/qgrid

ankostis commented 1 year ago

Interesting that it works with ipywidget-8, JohnOmernik/qgrid#9 managed to run for pre-8 widgets, what did you change?

skapin commented 1 year ago
huyuhuster commented 1 year ago

Does it work with Voila too?

skapin commented 1 year ago

Didnt test but perhpase I guess ?

huyuhuster commented 1 year ago

When I try to use qgrid with Voila, I get some error like this:

[Open Browser Console for more detailed log - Double click to close this message]
Failed to load model class 'QgridModel' from module 'qgrid'
Error: Script error for "qgrid"
http://requirejs.org/docs/errors.html#scripterror
    at makeError (http://202.122.32.111:8060/voila/static/require.min.js:1:1067)
    at HTMLScriptElement.onScriptError (http://202.122.32.111:8060/voila/static/require.min.js:1:13218)

The version I used: jupyter 1.0.0 jupyter_client 7.3.4 jupyter_core 5.2.0 jupyter-server 1.23.4 jupyterlab 3.5.3 jupyterlab-server 2.10.3 jupyterlab-widgets 3.0.5 ipywidgets 8.0.4 voila 0.4.0

ankostis commented 1 year ago

How did you install it? If you followed Omnerik's instructions, it won't work with ipywidgets >= 8.

huyuhuster commented 1 year ago

I install it by: conda install -c eshard qgrid

skapin commented 1 year ago

Ok so it doesnt work with voila :/ With your output I have no clue like that :/

ankostis commented 1 year ago

Can you try to downgrade pip install "ipywidgets<8'?

ankostis commented 1 year ago

I compared the py sources between Omerik's version which is ipywidget-8+ incompatible (see above) and @skapin 's conda package, and i see no significant difference - i guess it is ALSO ipywidget-8+ incompatible :-(

skapin commented 1 year ago

i works with pywidget8, but doenst works with voila,it's a different issue

ankostis commented 1 year ago

Can you please paste here your output for this command (or conda list if on conda)?

pip list | grep -iE "jupy|ipython|note|qgrid|ipy|js"