Skip to content

Commit b8f4051

Browse files
committed
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 <ryan@supported.systems>
1 parent 079537d commit b8f4051

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/jupyterlab/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@perspective-dev/viewer": "workspace:",
3030
"@perspective-dev/client": "workspace:",
3131
"@perspective-dev/server": "workspace:",
32-
"@jupyter-widgets/base": ">2 <5",
32+
"@jupyter-widgets/base": ">2 <7",
3333
"@jupyterlab/application": ">2 <5",
3434
"@lumino/application": "<3",
3535
"@lumino/widgets": "<3"

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ catalog:
2424
# Dependencies
2525
"@d3fc/d3fc-chart": "5.1.9"
2626
"@d3fc/d3fc-element": "6.2.0"
27-
"@jupyter-widgets/base": ">2 <5"
27+
"@jupyter-widgets/base": ">2 <7"
2828
"@jupyterlab/application": ">2 <5"
2929
"@lumino/application": "<3"
3030
"@lumino/widgets": "<3"

0 commit comments

Comments
 (0)