Skip to content

Commit 9f44e41

Browse files
Make babylonJS work with ipywidgets8 and backwards compatible
1 parent 2db369c commit 9f44e41

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"watch:nbextension": "NODE_OPTIONS=--max-old-space-size=4096 webpack --watch --mode=development"
5757
},
5858
"dependencies": {
59-
"@jupyter-widgets/base": "^1.1.10 || ^2 || ^3 || ^4",
59+
"@jupyter-widgets/base": "^2 || ^3 || ^4 || ^5 || ^6",
6060
"@jupyterlab/application": "^3.4.5",
6161
"@tiledb-inc/viz-core": "^1.0.2-alpha.2"
6262
},
@@ -88,7 +88,13 @@
8888
},
8989
"jupyterlab": {
9090
"extension": "lib/plugin",
91-
"outputDir": "pybabylonjs/labextension"
91+
"outputDir": "pybabylonjs/labextension",
92+
"sharedPackages": {
93+
"@jupyter-widgets/base": {
94+
"bundled": false,
95+
"singleton": true
96+
}
97+
}
9298
},
9399
"styleModule": "style/index.js"
94100
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
platforms="Linux, Mac OS X, Windows",
7171
keywords=["Jupyter", "JupyterLab", "JupyterLab3"],
7272
install_requires=[
73-
"ipywidgets>=7.0.0",
73+
"ipywidgets>=7,<9",
7474
],
7575
classifiers=[
7676
"License :: OSI Approved :: MIT License",

0 commit comments

Comments
 (0)