Skip to content

Commit adb71b7

Browse files
committed
generate deprecation notices using codegen and update plotly.js from master
1 parent 4005169 commit adb71b7

File tree

15 files changed

+231
-837
lines changed

15 files changed

+231
-837
lines changed

packages/javascript/jupyterlab-plotly/package-lock.json

+6-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/javascript/jupyterlab-plotly/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"@lumino/messaging": "^1.2.3",
6666
"@lumino/widgets": "^1.8.1",
6767
"lodash": "^4.17.4",
68-
"plotly.js": "https://output.circle-artifacts.com/output/job/f0bb742f-5266-49b7-a0f9-60247be3560f/artifacts/0/plotly.js.tgz"
68+
"plotly.js": "https://output.circle-artifacts.com/output/job/d76ad8a3-483d-4333-a853-f0ebb766251d/artifacts/0/plotly.js.tgz"
6969
},
7070
"jupyterlab": {
7171
"extension": "lib/jupyterlab-plugin",

packages/python/plotly/codegen/datatypes.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,18 @@ def _subplot_re_match(self, prop):
167167
_valid_props = {{"{'", "'.join(valid_props_list)}"}}
168168
"""
169169

170-
print(node)
170+
trace = node.name_property
171+
if "mapbox" in trace:
172+
str = (
173+
f"""
174+
print(
175+
"*{trace}* trace is deprecated!",
176+
"Please consider switching to *{trace.replace("mapbox", "map")}* trace type and `map` subplots.",
177+
"Learn more at: https://plotly.com/python/maplibre-migration/",
178+
)
179+
"""
180+
+ str
181+
)
171182

172183
buffer.write(str)
173184

0 commit comments

Comments
 (0)