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:

  1. For Admins: Ensure the JupyterLab environment includes both:
  2. Backend Python packages (pip install anywidget ipywidgets).
  3. Frontend JupyterLab extensions (e.g., @jupyter-widgets/jupyterlab-manager).

  4. 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