Open gogasca opened 2 years ago
DId you upgrade to ipywidgets 8.0, or is this a fresh install? If it was an upgrade, did you restart jupyter lab
to pick up the new files?
If you didn't restart jupyter lab, please restart jupyter lab.
If you upgraded and restarted the server, my guess is that the javascript files did not get updated for some reason. In that case, can you try this?
jupyterlab-widgets
: pip uninstall jupyterlab-widgets
/opt/conda/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager
is gone:
ls /opt/conda/share/jupyter/labextensions/@jupyter-widgets/jupyterlab-manager
jupyterlab-widgets
again: pip install jupyterlab-widgets
It is a fresh install. We build the OS and add libraries via conda. Unfortunately was not able to display the button after reinstall. Not sure what other information I can provide to see what may be happening?
+1 on this issue. Are there any updates?
We noticed that the version of jupyter-widgets/jupyterlab-manager
has changed between the new environment and the old one. Does ipywidgets
have a constraint on which version we need installed in the environment?
Also, re: this table: https://github.com/jupyter-widgets/ipywidgets#version-compatibility-with-front-end-clients, does ipywidgets
not guarantee compatibility with JupyterLab at all?
Also, re: this table: https://github.com/jupyter-widgets/ipywidgets#version-compatibility-with-front-end-clients, does
ipywidgets
not guarantee compatibility with JupyterLab at all?
Thanks for pointing that table out. It is outdated and needs to be refreshed. ipywidgets 7 and 8 both support JupyterLab 3.
We noticed that the version of
jupyter-widgets/jupyterlab-manager
has changed between the new environment and the old one. Doesipywidgets
have a constraint on which version we need installed in the environment?
ipywidgets 8 requires jupyterlab_widgets python package version 3.x, which shows up in the jlab extension list as @jupyter-widgets/jupyterlab_manager
extension version 5.x
@jasongrout thanks for the reply.
Here is some output from my environment:
(base) jupyter@yxc-widget-m97-3:~$ conda list | grep ipywidgets
ipywidgets 8.0.2 pyhd8ed1ab_1 conda-forge
(base) jupyter@yxc-widget-m97-3:~$ pip list | grep jupyterlab-widgets
jupyterlab-widgets 3.0.3
(base) jupyter@yxc-widget-m97-3:~$ jupyter labextension list
JupyterLab v3.4.7
/opt/conda/share/jupyter/labextensions
nbdime-jupyterlab v2.1.1 enabled OK
jupyterlab_pygments v0.2.2 enabled OK (python, jupyterlab_pygments)
jupyterlab-jupytext v1.3.8+dev enabled OK (python, jupytext)
@jupyterlab/server-proxy v3.2.2 enabled OK
@jupyterlab/git v0.39.2 enabled OK (python, jupyterlab-git)
@jupyter-widgets/jupyterlab-manager v5.0.3 enabled OK (python, jupyterlab_widgets)
Other labextensions (built into JupyterLab)
app dir: /opt/conda/share/jupyter/lab
beatrix_jupyterlab v2022.927.150007 disabled OK
jupyterlab-plotly v5.10.0 enabled OK
plotlywidget v4.14.3 enabled OK
wit-widget v1.8.1 enabled OK
Disabled extensions:
beatrix_jupyterlab (all plugins)
I believe that everything is set up properly, with the correct versions. However, I am still getting an issue with widgets failing to display. Is there anything else I can diagnose?
In regards to the OP, I created a conda environment with the versions of jupyterlab and ipywidgets from your example but was unable to recreate the particular issue of Error displaying widget
.
It seems likely to me the root issue isn't from ipywidgets. Is there any useful output to the browser console? If you try uninstalling the extensions one-by-one, perhaps the problematic extension can be singled out.
@gogasca @YuxuanChen Have you solved your problem?
@YuxuanChen we are seeing the same issue https://discourse.jupyter.org/t/ipywidgets-on-jupyterlab-with-enterprise-gateway-gets-stuck-at-loading-widgets/19159, was wondering if you were able to resolve this issue.
i solved this problem by opening the anaconda prompt and running:
conda install -c conda-forge ipywidgets
@mhnasser Thank you a lot. Problem solved
Description
Unable to display button. Get "Error displaying widget" error
Reproduce
Create a new User Managed Notebook (Google Cloud)
Shows
Error displaying widget
In JupyterLab logs:
Expected behavior
Display button
Context
Troubleshoot Output
Command Line Output
Browser Output
If using JupyterLab
Installed Labextensions