Closed ollyhensby closed 4 months ago
Thanks for reporting, we will take a look at it.
Both @trungleduc and I are not able to reproduce the issue you mention.
Also, our CI is testing jupyter widgets in voila (both core widgets and custom widgets) and the CI tests are passing fine on main.
I am really surprised by Error: No version of module @jupyter-widgets/base is registered
, @jupyter-widgets/base
is provided by Voila itself, it should always be there.
Would you be able to run jupyter --paths
and inspect all the list directories to see if you don't have rogue extensions installed in non-wanted places (outside of the conda env itself), if so try removing them?
Both @trungleduc and I are not able to reproduce the issue you mention.
Also, our CI is testing jupyter widgets in voila (both core widgets and custom widgets) and the CI tests are passing fine on main.
I am really surprised by
Error: No version of module @jupyter-widgets/base is registered
,@jupyter-widgets/base
is provided by Voila itself, it should always be there.Would you be able to run
jupyter --paths
and inspect all the list directories to see if you don't have rogue extensions installed in non-wanted places (outside of the conda env itself), if so try removing them?
Strange. I am running in WSL which maybe could be making the difference but I am not sure how that would affect this.
jupyter --paths
produces this output:
config:
/home/jovyan/miniforge3/envs/voila-ipywidgets-issue/etc/jupyter
/home/jovyan/.jupyter
/home/jovyan/.local/etc/jupyter
/usr/local/etc/jupyter
/etc/jupyter
data:
/home/jovyan/miniforge3/envs/voila-ipywidgets-issue/share/jupyter
/home/jovyan/.local/share/jupyter
/usr/local/share/jupyter
/usr/share/jupyter
runtime:
/home/jovyan/.local/share/jupyter/runtime
I also did a fresh install of Ubuntu 22.04 and tried again but unfortunately got the same error.
It appears that Voila preview is working as expected though:
But fails on voila test.ipynb
as mentioned above.
Just did a bit more research into this issue. I created a simple repository so that I could deploy it to binder.
I launched with binder and it works: https://mybinder.org/v2/gh/ollyhensby/voila-ipywidgets-issue/HEAD?urlpath=voila%2Frender%2Ftest.ipynb
Must be something to do with my setup locally so will have a look into that some more.
So I cleared all cached images and files in my browser and that appears to have resolved this issue. If in doubt, clear the browser cache!
Thanks for the help anyways. Will close this issue.
Thanks for the detailed feedback! Indeed invalid cache can be annoying
Description
ipywidgets isn't working with the latest voila release:
Reproduce
Expected behavior
Expect ipywidgets to load successfully in voila.
Context
Troubleshoot Output
Command Line Output
Browser Output
If using JupyterLab
Installed Labextensions