Closed marcelmindemann closed 2 years ago
~Can you try uninstalling ipympl, then removing the /Users/marcel.mindemann/moia-dev/pooling-analytics/passt/discovery-panel/.venv/share/jupyter/labextensions/jupyter-matplotlib
directory entirely and install ipympl v0.9.0
again?~
Starting from this release, updating ipympl should be less painful.
@ianhi I can also reproduce this issue. Latest ipympl seems to not work with Voila.
I guess the issue is with the package version number. Voila seems to be trying to download jupyter-matplotlib 1.0.0 instead of 0.11.0:
Falling back to https://cdn.jsdelivr.net/npm/ for jupyter-matplotlib@1.0.0
Is that maybe a bug in voila and it's widget manager?
I wonder why this doesn't happen for ipywidgets though. As far as I can see we've done the same thing as is done there
Apparently there is the same issue with nbpshinx (which uses the ipywidgets HTMLManager) https://github.com/matplotlib/ipympl/issues/462
You can see in this issue's screenshots the same thing:
Falling back to https://cdn.jsdelivr.net/npm/ for jupyter-matplotlib@1.0.0
It's unclear to me now how Voila/nbsphinx are supposed to know which jupyter-matplotlib version they need to download if that version is not part of the Python model... So this error makes sense.
ipywidgets seems to be making a special case for ipywidgets...
I guess our only solution is to revert https://github.com/matplotlib/ipympl/pull/448 :( I am so sorry
It looks like if we want to implement #448 properly we need to update ipywidgets first
similar problem in vscode as well https://github.com/microsoft/vscode-jupyter/issues/9697 @martinRenou let me know if there's anything we need to do to get this fixed in vscode extension. thanks.
0.9.1 should fix this issue. I will mark the 0.9.0 release as broken on conda-forge
.
@ianhi I reverted your changes on the widget versioning, again I am sorry for this. Though I've loosen a bit the back-end/front-end relationship by requiring ^0.11
instead of ^0.11.1
, see https://github.com/matplotlib/ipympl/blob/main/ipympl/_version.py#L3.
Describe the issue
Using an
ipywidgets.Output
to capture some ipympl plots, then displaying the Output in Voila shows only "Loading Widget...". Works with ipympl 0.8.8.Minimal code example:
Works in JupyterLab 3.3.0:
Does not work in voila + ipympl 0.9.0:
Works in voila + ipympl 0.8.8:
Versions