1605975 : anywidget für Jupyterlab?¶
Created: 2026-06-03T15:32:21Z - current status: new¶
Anonymized Summary:¶
A user reports that Jupyter widgets (anywidget, ipywidgets with plotly) are not working in Max-JupyterHub’s JupyterLab, despite the packages being installed in their kernel. Running plotly.graph_objects.FigureWidget() throws a JavaScript error related to loading 'AnyModel' from module 'anywidget'.
Issue:¶
- Error: Failed to load widget-related dependencies (
anywidget,ipywidgets) in JupyterLab. - Root Cause: Missing frontend extensions for widgets in the JupyterHub deployment (not just Python package installation).
Solution / Next Steps:¶
- For Admins: Ensure the JupyterLab environment includes both:
- Backend Python packages (
pip install anywidget ipywidgets). -
Frontend JupyterLab extensions (e.g.,
@jupyter-widgets/jupyterlab-manager). -
For User: Temporarily switch to "Classic Notebook" mode via the Launch modus option (if available), as it may handle widgets differently.
Sources: - JupyterHub on Maxwell Configuration