Skip to content

Commit

Permalink
Make babylonJS work with ipywidgets8 and backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
SarantopoulosKon committed Jun 2, 2023
1 parent 2db369c commit 9f44e41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"watch:nbextension": "NODE_OPTIONS=--max-old-space-size=4096 webpack --watch --mode=development"
},
"dependencies": {
"@jupyter-widgets/base": "^1.1.10 || ^2 || ^3 || ^4",
"@jupyter-widgets/base": "^2 || ^3 || ^4 || ^5 || ^6",
"@jupyterlab/application": "^3.4.5",
"@tiledb-inc/viz-core": "^1.0.2-alpha.2"
},
Expand Down Expand Up @@ -88,7 +88,13 @@
},
"jupyterlab": {
"extension": "lib/plugin",
"outputDir": "pybabylonjs/labextension"
"outputDir": "pybabylonjs/labextension",
"sharedPackages": {
"@jupyter-widgets/base": {
"bundled": false,
"singleton": true
}
}
},
"styleModule": "style/index.js"
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
platforms="Linux, Mac OS X, Windows",
keywords=["Jupyter", "JupyterLab", "JupyterLab3"],
install_requires=[
"ipywidgets>=7.0.0",
"ipywidgets>=7,<9",
],
classifiers=[
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit 9f44e41

Please sign in to comment.