qgrid icon indicating copy to clipboard operation
qgrid copied to clipboard

Here, working version

Open skapin opened this issue 2 years ago • 12 comments

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

https://anaconda.org/eshard/qgrid

skapin avatar Feb 15 '23 16:02 skapin

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

ankostis avatar Mar 21 '23 13:03 ankostis

  • Reworked the plugin using cookie cutter
  • copy/paste src code
  • follow migration guide about migrating to ipywidget8 (changer js and py files mainly)

skapin avatar Mar 21 '23 20:03 skapin

Does it work with Voila too?

huyuhuster avatar Mar 22 '23 10:03 huyuhuster

Didnt test but perhpase I guess ?

skapin avatar Mar 22 '23 12:03 skapin

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

huyuhuster avatar Mar 23 '23 09:03 huyuhuster

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

ankostis avatar Mar 23 '23 13:03 ankostis

I install it by: conda install -c eshard qgrid

huyuhuster avatar Mar 24 '23 05:03 huyuhuster

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

skapin avatar Mar 24 '23 10:03 skapin

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

ankostis avatar Mar 24 '23 19:03 ankostis

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 :-(

ankostis avatar May 22 '23 21:05 ankostis

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

skapin avatar Jul 17 '23 12:07 skapin

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"

ankostis avatar Jul 17 '23 16:07 ankostis