From b8f40517b8d5e15a429f1daaeded8589e1984684 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Sat, 24 Jan 2026 17:19:20 -0700 Subject: [PATCH] fix(jupyterlab): update @jupyter-widgets/base constraint for ipywidgets 8.x The JupyterLab extension fails to load with ipywidgets 8.x because the version constraint ">2 <5" rejects @jupyter-widgets/base 6.x which is provided by ipywidgets 8.x (the current stable release). Error in browser console: Unsatisfied version 6.0.11 from @jupyter-widgets/jupyterlab-manager of shared singleton module @jupyter-widgets/base (required >=2 not(^2) <5) This causes widgets to fail with: TypeError: undefined is not iterable Update the constraint from ">2 <5" to ">2 <7" to support both ipywidgets 7.x (@jupyter-widgets/base 4.x) and ipywidgets 8.x (@jupyter-widgets/base 6.x). Fixes compatibility with: - JupyterLab 4.x - ipywidgets 8.x (current stable) Signed-off-by: Ryan Malloy --- packages/jupyterlab/package.json | 2 +- pnpm-workspace.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/jupyterlab/package.json b/packages/jupyterlab/package.json index a1d58bc0f9..92527b480b 100644 --- a/packages/jupyterlab/package.json +++ b/packages/jupyterlab/package.json @@ -29,7 +29,7 @@ "@perspective-dev/viewer": "workspace:", "@perspective-dev/client": "workspace:", "@perspective-dev/server": "workspace:", - "@jupyter-widgets/base": ">2 <5", + "@jupyter-widgets/base": ">2 <7", "@jupyterlab/application": ">2 <5", "@lumino/application": "<3", "@lumino/widgets": "<3" diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 1db7d1ebcc..0626ecc85a 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -24,7 +24,7 @@ catalog: # Dependencies "@d3fc/d3fc-chart": "5.1.9" "@d3fc/d3fc-element": "6.2.0" - "@jupyter-widgets/base": ">2 <5" + "@jupyter-widgets/base": ">2 <7" "@jupyterlab/application": ">2 <5" "@lumino/application": "<3" "@lumino/widgets": "<3"