Skip to content

Commit 1947b0e

Browse files
committed
update plotlyjs version to 2.18.1
1 parent ed0445d commit 1947b0e

File tree

160 files changed

+664
-679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+664
-679
lines changed

packages/python/plotly/plotly/graph_objects/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@
267267
if sys.version_info < (3, 7) or TYPE_CHECKING:
268268
try:
269269
import ipywidgets as _ipywidgets
270-
from packaging.version import Version as _Version
270+
from distutils.version import LooseVersion as _LooseVersion
271271

272-
if _Version(_ipywidgets.__version__) >= _Version("7.0.0"):
272+
if _LooseVersion(_ipywidgets.__version__) >= _LooseVersion("7.0.0"):
273273
from ..graph_objs._figurewidget import FigureWidget
274274
else:
275275
raise ImportError()
@@ -283,9 +283,9 @@ def __getattr__(import_name):
283283
if import_name == "FigureWidget":
284284
try:
285285
import ipywidgets
286-
from packaging.version import Version
286+
from distutils.version import LooseVersion
287287

288-
if Version(ipywidgets.__version__) >= Version("7.0.0"):
288+
if LooseVersion(ipywidgets.__version__) >= LooseVersion("7.0.0"):
289289
from ..graph_objs._figurewidget import FigureWidget
290290

291291
return FigureWidget

packages/python/plotly/plotly/graph_objs/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,9 +267,9 @@
267267
if sys.version_info < (3, 7) or TYPE_CHECKING:
268268
try:
269269
import ipywidgets as _ipywidgets
270-
from packaging.version import Version as _Version
270+
from distutils.version import LooseVersion as _LooseVersion
271271

272-
if _Version(_ipywidgets.__version__) >= _Version("7.0.0"):
272+
if _LooseVersion(_ipywidgets.__version__) >= _LooseVersion("7.0.0"):
273273
from ..graph_objs._figurewidget import FigureWidget
274274
else:
275275
raise ImportError()
@@ -283,9 +283,9 @@ def __getattr__(import_name):
283283
if import_name == "FigureWidget":
284284
try:
285285
import ipywidgets
286-
from packaging.version import Version
286+
from distutils.version import LooseVersion
287287

288-
if Version(ipywidgets.__version__) >= Version("7.0.0"):
288+
if LooseVersion(ipywidgets.__version__) >= LooseVersion("7.0.0"):
289289
from ..graph_objs._figurewidget import FigureWidget
290290

291291
return FigureWidget

packages/python/plotly/plotly/graph_objs/_carpet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,8 @@ def aaxis(self):
276276
Sets the tick label formatting rule using d3
277277
formatting mini-languages which are very
278278
similar to those in Python. For numbers, see: h
279-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
280-
format. And for dates see:
279+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
280+
ormat. And for dates see:
281281
https://github.com/d3/d3-time-
282282
format/tree/v2.2.3#locale_format. We add two
283283
items to d3's date formatter: "%h" for half of
@@ -596,8 +596,8 @@ def baxis(self):
596596
Sets the tick label formatting rule using d3
597597
formatting mini-languages which are very
598598
similar to those in Python. For numbers, see: h
599-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
600-
format. And for dates see:
599+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
600+
ormat. And for dates see:
601601
https://github.com/d3/d3-time-
602602
format/tree/v2.2.3#locale_format. We add two
603603
items to d3's date formatter: "%h" for half of

packages/python/plotly/plotly/graph_objs/_choropleth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ def colorbar(self):
245245
Sets the tick label formatting rule using d3
246246
formatting mini-languages which are very
247247
similar to those in Python. For numbers, see: h
248-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
249-
format. And for dates see:
248+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
249+
ormat. And for dates see:
250250
https://github.com/d3/d3-time-
251251
format/tree/v2.2.3#locale_format. We add two
252252
items to d3's date formatter: "%h" for half of

packages/python/plotly/plotly/graph_objs/_choroplethmapbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ def colorbar(self):
269269
Sets the tick label formatting rule using d3
270270
formatting mini-languages which are very
271271
similar to those in Python. For numbers, see: h
272-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
273-
format. And for dates see:
272+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
273+
ormat. And for dates see:
274274
https://github.com/d3/d3-time-
275275
format/tree/v2.2.3#locale_format. We add two
276276
items to d3's date formatter: "%h" for half of

packages/python/plotly/plotly/graph_objs/_cone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ def colorbar(self):
371371
Sets the tick label formatting rule using d3
372372
formatting mini-languages which are very
373373
similar to those in Python. For numbers, see: h
374-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
375-
format. And for dates see:
374+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
375+
ormat. And for dates see:
376376
https://github.com/d3/d3-time-
377377
format/tree/v2.2.3#locale_format. We add two
378378
items to d3's date formatter: "%h" for half of

packages/python/plotly/plotly/graph_objs/_contour.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -292,8 +292,8 @@ def colorbar(self):
292292
Sets the tick label formatting rule using d3
293293
formatting mini-languages which are very
294294
similar to those in Python. For numbers, see: h
295-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
296-
format. And for dates see:
295+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
296+
ormat. And for dates see:
297297
https://github.com/d3/d3-time-
298298
format/tree/v2.2.3#locale_format. We add two
299299
items to d3's date formatter: "%h" for half of
@@ -535,8 +535,8 @@ def contours(self):
535535
Sets the contour label formatting rule using d3
536536
formatting mini-languages which are very
537537
similar to those in Python. For numbers, see: h
538-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
539-
format.
538+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
539+
ormat.
540540
operation
541541
Sets the constraint operation. "=" keeps
542542
regions equal to `value` "<" and "<=" keep

packages/python/plotly/plotly/graph_objs/_contourcarpet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ def colorbar(self):
465465
Sets the tick label formatting rule using d3
466466
formatting mini-languages which are very
467467
similar to those in Python. For numbers, see: h
468-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
469-
format. And for dates see:
468+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
469+
ormat. And for dates see:
470470
https://github.com/d3/d3-time-
471471
format/tree/v2.2.3#locale_format. We add two
472472
items to d3's date formatter: "%h" for half of
@@ -685,8 +685,8 @@ def contours(self):
685685
Sets the contour label formatting rule using d3
686686
formatting mini-languages which are very
687687
similar to those in Python. For numbers, see: h
688-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
689-
format.
688+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
689+
ormat.
690690
operation
691691
Sets the constraint operation. "=" keeps
692692
regions equal to `value` "<" and "<=" keep

packages/python/plotly/plotly/graph_objs/_densitymapbox.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,8 @@ def colorbar(self):
268268
Sets the tick label formatting rule using d3
269269
formatting mini-languages which are very
270270
similar to those in Python. For numbers, see: h
271-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
272-
format. And for dates see:
271+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
272+
ormat. And for dates see:
273273
https://github.com/d3/d3-time-
274274
format/tree/v2.2.3#locale_format. We add two
275275
items to d3's date formatter: "%h" for half of

packages/python/plotly/plotly/graph_objs/_heatmap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ def colorbar(self):
267267
Sets the tick label formatting rule using d3
268268
formatting mini-languages which are very
269269
similar to those in Python. For numbers, see: h
270-
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-
271-
format. And for dates see:
270+
ttps://github.com/d3/d3-format/tree/v1.4.5#d3-f
271+
ormat. And for dates see:
272272
https://github.com/d3/d3-time-
273273
format/tree/v2.2.3#locale_format. We add two
274274
items to d3's date formatter: "%h" for half of

0 commit comments

Comments
 (0)