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

Error displaying widget: model not found when using ipywidgets interact #592

Open
jtpio opened this issue Sep 15, 2023 · 7 comments
Open

Comments

@jtpio
Copy link
Member

jtpio commented Sep 15, 2023

Using the ipywidgets interact (more precisely interactive) gives the following error:

Error displaying widget: model not found

However this does not seem to be an issue with ipykernel.

To reproduce, go to https://github.com/jupyterlab/jupyterlab-demo and open the demo on Binder: https://mybinder.org/v2/gh/jupyterlab/jupyterlab-demo/master?urlpath=lab

image

This was also noticed with jupyterlite-xeus-python in jupyter/try-jupyter#42

@jtpio jtpio changed the title Error displaying widget: model not found when using the ipywidgets interact Error displaying widget: model not found when using ipywidgets interact Sep 15, 2023
@martinRenou
Copy link
Member

I think the jupyterlab-demo is broken because of https://github.com/jupyterlab/jupyterlab-demo/blob/master/.binder/environment.yml#L21

If you're using latest ipywidgets, you should be using the latest xeus-python which makes use of the new comm package.

@martinRenou
Copy link
Member

Concerning the lite deployment on try-jupyter. I am not even able to execute the cell that uses interact.

This is very probable we are hitting an issue similar to emscripten-forge/recipes#619 where scipy and matplotlib are incompatible on emscripten-forge and leads to issues.

@jtpio
Copy link
Member Author

jtpio commented Sep 15, 2023

Ah ok, sure we can at least update the demo repo.

Over on jupyter/try-jupyter#42 the error might be different then? Haven't checked yet whether it's related to xeus python or only in jupyterlite-xeus-python:

Uncaught (in promise) RuntimeError: indirect call signature mismatch

image

@jtpio
Copy link
Member Author

jtpio commented Sep 15, 2023

Concerning the lite deployment on try-jupyter. I am not even able to execute the cell that uses interact.

Normally the first 2 cells execute fine. The one calling interact throws an error in the dev tools console.

@martinRenou
Copy link
Member

I'm having the same as you in the lite deployment.

I do believe it's because of our build of scipy on emscripten-forge that conflicts with matplotlib (they build against different version of qhull and that may be the issue). We would want to troubleshoot this there.

I personally am not even able to build scipy on emscripten-forge, we need help :D.

@jtpio
Copy link
Member Author

jtpio commented Sep 15, 2023

Looks like there is a build of scipy available though:

image

@martinRenou
Copy link
Member

martinRenou commented Sep 15, 2023

There is, but it's broken :) and it does not build anymore if you try rebuilding it

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

No branches or pull requests

2 participants