From 83d820bd04e165f32ac2c6e236b9655e7a537756 Mon Sep 17 00:00:00 2001 From: Nicolas Kruchten Date: Mon, 11 Jan 2021 14:01:25 -0500 Subject: [PATCH] support JupyterLab 3 in extensions --- packages/javascript/jupyterlab-plotly/package.json | 2 +- packages/javascript/plotlywidget/package.json | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/javascript/jupyterlab-plotly/package.json b/packages/javascript/jupyterlab-plotly/package.json index 7d5be62045d..9e909fc8703 100644 --- a/packages/javascript/jupyterlab-plotly/package.json +++ b/packages/javascript/jupyterlab-plotly/package.json @@ -33,7 +33,7 @@ "dependencies": { "plotly.js": "^1.58.2", "@types/plotly.js": "1.44.28", - "@jupyterlab/rendermime-interfaces": "^1.3.0 || ^2.0.0", + "@jupyterlab/rendermime-interfaces": "^1.3.0 || ^2.0.0 || ^3.0.0", "@lumino/messaging": "^1.2.3", "@lumino/widgets": "^1.8.1", "lodash": "^4.17.4" diff --git a/packages/javascript/plotlywidget/package.json b/packages/javascript/plotlywidget/package.json index 09976f83ccd..49b5d3ff235 100644 --- a/packages/javascript/plotlywidget/package.json +++ b/packages/javascript/plotlywidget/package.json @@ -38,6 +38,12 @@ "lodash": "^4.17.4" }, "jupyterlab": { - "extension": "src/jupyterlab-plugin.js" + "extension": "src/jupyterlab-plugin.js", + "sharedPackages": { + "@jupyter-widgets/base": { + "bundled": false, + "singleton": true + } + } } }