Skip to content

Commit 6355ee4

Browse files
committed
Add package.json esbuild command and update test requirements to include anywidget
1 parent d5d245c commit 6355ee4

File tree

9 files changed

+11
-3
lines changed

9 files changed

+11
-3
lines changed

packages/javascript/jupyterlab-plotly/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"build:labextension:dev": "jupyter labextension build --development True .",
2929
"build:lib": "tsc",
3030
"build:nbextension": "webpack --mode=production",
31+
"bundle": "esbuild --bundle --format=esm --outfile=../../python/plotly/plotly/bundle.js src/Figure.ts",
3132
"clean": "npm run clean:lib && npm run clean:nbextension && npm run clean:labextension",
3233
"clean:lib": "rimraf lib",
3334
"clean:labextension": "rimraf ../../python/plotly/jupyterlab_plotly/labextension",

packages/python/plotly/plotly/basewidget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class BaseFigureWidget(BaseFigure, anywidget.AnyWidget):
1515
subclass
1616
"""
1717

18-
_esm = pathlib.Path(__file__).parent / "../../../../bundle.js"
18+
_esm = pathlib.Path(__file__).parent / "bundle.js"
1919

2020
# ### _data and _layout ###
2121
# These properties store the current state of the traces and

packages/python/plotly/test_requirements/requirements_310_optional.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ scikit-image==0.22.0
2020
psutil==5.7.0
2121
kaleido
2222
orjson==3.8.12
23+
anywidget

packages/python/plotly/test_requirements/requirements_311_optional.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ scikit-image==0.22.0
2020
psutil==5.7.0
2121
kaleido
2222
orjson==3.8.12
23+
anywidget

packages/python/plotly/test_requirements/requirements_312_no_numpy_optional.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ matplotlib==3.8.2
1818
scikit-image==0.22.0
1919
psutil==5.9.7
2020
kaleido
21-
orjson==3.9.10
21+
orjson==3.9.10
22+
anywidget

packages/python/plotly/test_requirements/requirements_312_optional.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ matplotlib==3.8.2
1919
scikit-image==0.22.0
2020
psutil==5.9.7
2121
kaleido
22-
orjson==3.9.10
22+
orjson==3.9.10
23+
anywidget

packages/python/plotly/test_requirements/requirements_38_optional.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ matplotlib==3.7.3
2020
scikit-image==0.18.1
2121
psutil==5.7.0
2222
kaleido
23+
anywidget

packages/python/plotly/test_requirements/requirements_39_optional.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ scikit-image==0.18.1
2121
psutil==5.7.0
2222
kaleido
2323
orjson==3.8.12
24+
anywidget

packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ kaleido
2222
vaex
2323
pydantic<=1.10.11 # for vaex, see https://github.com/vaexio/vaex/issues/2384
2424
polars
25+
anywidget

0 commit comments

Comments
 (0)