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

Jupyter plugin loaded but can not be instantiated #43

Open
justinlaughlin opened this issue Jan 11, 2024 · 5 comments
Open

Jupyter plugin loaded but can not be instantiated #43

justinlaughlin opened this issue Jan 11, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@justinlaughlin
Copy link
Contributor

justinlaughlin commented Jan 11, 2024

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.

@tzanio tzanio added the question Further information is requested label Jan 15, 2024
@justinlaughlin
Copy link
Contributor Author

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
Copy link
Member

tzanio commented Jan 16, 2024

@justinlaughlin justinlaughlin mentioned this issue Mar 5, 2024
@bclyons12
Copy link

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
Copy link
Member

v-dobrev commented Apr 2, 2024

Any updates here?

Maybe you can try PR #44?

@justinlaughlin
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants