GLVis / pyglvis

GLVis Jupyter Widget
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Jupyter plugin loaded but can not be instantiated #43

Open justinlaughlin opened 8 months ago

justinlaughlin commented 8 months ago

I ran a fresh pip install of pymfem and pyglvis, enabled the jupyter extension, and receive the following error running ex1.ipynb (link)

image

I did some googling and it looks like this may be a common issue (example), possibly related to compatibility changes from ipywidgets 7.x to 8.x. I checked and I am currently using ipywidgets == 8.0.4 and widgetsnbextension == 4.0.5. I've tried downgrading (ipywidgets == 7.8.0 and widgetsnbextension == 3.6.6) with no luck.

Curious if anyone else has run into this; I will keep playing around with this to see if I can find a solution.

justinlaughlin commented 8 months ago

I've made a few more various attempts (jupyterlab, nbclassic, different python versions) without success. It could be a jupyter compatibility issue, or just my environment. Either way, there seems to be a big migration in jupyter to "Notebook 7" that will break old plugins. I'd be happy to help with any changes needed; I think the javascript plugin may need to be converted to a jupyter server extension? I was able to successfully build the latest glvis-js using emscripten - I am thinking a reasonable next step is to figure out how to convert that into a notebook 7 compatible plugin. It'd be nice to compare notes with whoever helped to develop the plugin previously.

Thanks!

tzanio commented 8 months ago

See also: https://colab.research.google.com/drive/13m6KwuHnGL9_AhA65P42JuRxfKcgWMBj?usp=sharing

bclyons12 commented 6 months ago

Any updates here? I have a similar error in Jupyter Lab:

[Open Browser Console for more detailed log - Double click to close this message]
Model class 'GLVisModel' from module 'glvis-jupyter' is loaded but can not be instantiated
_make_model@http://localhost:8888/lab/extensions/@jupyter-widgets/jupyterlab-manager/static/336.0a90bd910629a565bb7e.js?v=0a90bd910629a565bb7e:1:7932
v-dobrev commented 6 months ago

Any updates here?

Maybe you can try PR #44?

justinlaughlin commented 5 months ago

@bclyons12 let me know if the PR works for you, feel free to reach out if you have trouble