Skip to content

Commit 85a8ce5

Browse files
authored
Merge branch 'master' into patch-1
2 parents 5433a6c + e8397d2 commit 85a8ce5

File tree

3,416 files changed

+167661
-3609
lines changed

Some content is hidden

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

3,416 files changed

+167661
-3609
lines changed

.circleci/config.yml

Lines changed: 76 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
version: 2.1
22

33
orbs:
4-
browser-tools: circleci/[email protected].5
4+
browser-tools: circleci/[email protected].8
55

66
commands:
77
test_core:
88
parameters:
99
py:
10-
default: "36"
10+
default: "310"
1111
type: string
1212
steps:
1313
- checkout
@@ -32,7 +32,7 @@ commands:
3232
test_optional:
3333
parameters:
3434
py:
35-
default: "36"
35+
default: "310"
3636
type: string
3737
steps:
3838
- checkout
@@ -95,7 +95,7 @@ commands:
9595
test_orca:
9696
parameters:
9797
py:
98-
default: "36"
98+
default: "310"
9999
type: string
100100
steps:
101101
- checkout
@@ -153,20 +153,6 @@ jobs:
153153
black --check . --exclude venv
154154
155155
# Core
156-
python_36_core:
157-
docker:
158-
- image: cimg/python:3.6-browsers
159-
steps:
160-
- test_core:
161-
py: "36"
162-
163-
python_37_core:
164-
docker:
165-
- image: cimg/python:3.7-browsers
166-
steps:
167-
- test_core:
168-
py: "37"
169-
170156
python_38_core:
171157
docker:
172158
- image: cimg/python:3.8-browsers
@@ -181,20 +167,28 @@ jobs:
181167
- test_core:
182168
py: "39"
183169

184-
# Optional
185-
python_36_optional:
170+
python_310_core:
186171
docker:
187-
- image: cimg/python:3.6-browsers
172+
- image: cimg/python:3.10-browsers
188173
steps:
189-
- test_optional:
190-
py: "36"
174+
- test_core:
175+
py: "310"
191176

192-
python_37_optional:
177+
python_311_core:
193178
docker:
194-
- image: cimg/python:3.7-browsers
179+
- image: cimg/python:3.11-browsers
195180
steps:
196-
- test_optional:
197-
py: "37"
181+
- test_core:
182+
py: "311"
183+
184+
python_312_core:
185+
docker:
186+
- image: cimg/python:3.12-browsers
187+
steps:
188+
- test_core:
189+
py: "312"
190+
191+
# Optional
198192

199193
python_38_optional:
200194
docker:
@@ -210,6 +204,27 @@ jobs:
210204
- test_optional:
211205
py: "39"
212206

207+
python_310_optional:
208+
docker:
209+
- image: cimg/python:3.10-browsers
210+
steps:
211+
- test_optional:
212+
py: "310"
213+
214+
python_311_optional:
215+
docker:
216+
- image: cimg/python:3.11-browsers
217+
steps:
218+
- test_optional:
219+
py: "311"
220+
221+
python_312_optional:
222+
docker:
223+
- image: cimg/python:3.12-browsers
224+
steps:
225+
- test_optional:
226+
py: "312"
227+
213228
# Pandas
214229

215230
python_39_pandas_2_optional:
@@ -219,6 +234,21 @@ jobs:
219234
- test_optional:
220235
py: "39_pandas_2"
221236

237+
# No numpy
238+
python_312_no_numpy:
239+
docker:
240+
- image: cimg/python:3.12-browsers
241+
steps:
242+
- run:
243+
name: Check that numpy is not installed
244+
command: |
245+
if pip list | grep numpy > /dev/null 2>&1
246+
then exit 1
247+
else exit 0
248+
fi
249+
- test_optional:
250+
py: "312_no_numpy"
251+
222252
# Orca
223253
python_38_orca:
224254
docker:
@@ -228,7 +258,7 @@ jobs:
228258
py: "38"
229259

230260
# Percy
231-
python_37_percy:
261+
python_39_percy:
232262
docker:
233263
- image: cimg/python:3.9-browsers
234264
environment:
@@ -277,9 +307,9 @@ jobs:
277307
rm test/percy/*.html
278308
279309
# Chart studio
280-
python_37_chart_studio:
310+
python_38_chart_studio:
281311
docker:
282-
- image: cimg/python:3.7
312+
- image: cimg/python:3.8
283313
resource_class: large
284314

285315
steps:
@@ -291,7 +321,7 @@ jobs:
291321
python -m venv venv
292322
. venv/bin/activate
293323
pip install --upgrade pip wheel
294-
pip install -r ./test_requirements/requirements_37.txt
324+
pip install -r ./test_requirements/requirements_38.txt
295325
- run:
296326
name: Tests
297327
command: |
@@ -302,7 +332,7 @@ jobs:
302332

303333
plotlyjs_dev_build:
304334
docker:
305-
- image: cimg/python:3.7-node
335+
- image: cimg/python:3.8-node
306336
environment:
307337
LANG: en_US.UTF-8
308338
resource_class: large
@@ -316,7 +346,7 @@ jobs:
316346
python -m venv venv
317347
. venv/bin/activate
318348
pip install --upgrade pip wheel
319-
pip install -r ./test_requirements/requirements_37_core.txt black inflect
349+
pip install -r ./test_requirements/requirements_38_core.txt black inflect
320350
pip install jupyterlab~=3.0
321351
- run:
322352
name: Update jupyterlab-plotly version
@@ -359,7 +389,7 @@ jobs:
359389

360390
full_build:
361391
docker:
362-
- image: continuumio/miniconda3
392+
- image: continuumio/miniconda3:24.3.0-0
363393
environment:
364394
LANG: en_US.UTF-8
365395
resource_class: large
@@ -370,7 +400,7 @@ jobs:
370400
- run:
371401
name: Create conda environment
372402
command: |
373-
conda create -n env --yes python=3.9 conda-build conda-verify
403+
conda create -n env --yes python=3.9 conda-build=3.28.4 conda-verify
374404
conda install -n env -c conda-forge jupyterlab=3 nodejs=16
375405
conda init bash
376406
mkdir output
@@ -432,8 +462,8 @@ jobs:
432462
resource_class: xlarge
433463
docker:
434464
# specify the version you desire here
435-
# use `-browsers` prefix for selenium tests, for example, `3.6.1-browsers`
436-
- image: cimg/python:3.7-browsers
465+
# use `-browsers` prefix for selenium tests, for example, `3.9-browsers`
466+
- image: cimg/python:3.9-browsers
437467

438468
steps:
439469
- add_ssh_keys:
@@ -570,15 +600,19 @@ workflows:
570600

571601
build:
572602
jobs:
573-
- python_36_core
574-
- python_37_core
575603
- python_38_core
576604
- python_39_core
577-
- python_36_optional
578-
- python_37_optional
605+
- python_310_core
606+
- python_311_core
607+
- python_312_core
579608
- python_38_optional
580609
- python_39_optional
610+
- python_310_optional
611+
- python_311_optional
612+
- python_312_optional
581613
- python_39_pandas_2_optional
582614
- python_38_orca
583-
- python_37_percy
615+
- python_39_percy
616+
- python_312_no_numpy
584617
- build-doc
618+

CHANGELOG.md

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,80 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [UNRELEASED]
5+
## UNRELEASED
6+
7+
### Updated
8+
- Fixed a bug in integer validation of arrays that threw an error when an array contained a mix of strings and integers.
9+
10+
## [5.23.0] - 2024-07-23
11+
12+
### Updated
13+
- Updated Plotly.js from version 2.32.0 to version 2.34.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2340----2024-07-18) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
14+
- Add `subtitle` attribute to `layout.title` to enable adding subtitles to plots [[#7012](https://github.com/plotly/plotly.js/pull/7012)]
15+
- Introduce "u" and "s" pseudo html tags to add partial underline and strike-through styles to SVG text elements [[#7043](https://github.com/plotly/plotly.js/pull/7043)]
16+
- Add geometric mean functionality and 'geometric mean ascending' + 'geometric mean descending' to `category_order` on cartesian axes [[#6223](https://github.com/plotly/plotly.js/pull/6223)],
17+
with thanks to @acxz and @prabhathc for the contribution!
18+
- Add axis property `ticklabelindex` for drawing the label for each minor tick n positions away from a major tick,
19+
with thanks to @my-tien for the contribution! [[#7036](https://github.com/plotly/plotly.js/pull/7036)]
20+
- Add property `ticklabelstandoff` and `ticklabelshift` to cartesian axes to adjust positioning of tick labels,
21+
with thanks to @my-tien for the contribution! [[#7006](https://github.com/plotly/plotly.js/pull/7006)]
22+
- Add `x0shift`, `x1shift`, `y0shift`, `y1shift` to shapes to add control over positioning of shape vertices on (multi-)category axes,
23+
with thanks to @my-tien for the contribution! [[#7005](https://github.com/plotly/plotly.js/pull/7005)]
24+
- Specify Python version 3.8-3.11 for development virtual environments and pin `pytest` at version 8.1.1 to match.
25+
- Update `IntegerValidator` to handle `extras` option to allow supporting additional keyword values. For example, 'bold' and 'normal' as well as integers as used in font weights [#4612].
26+
27+
28+
## [5.22.0] - 2024-05-01
29+
30+
### Updated
31+
- Updated Plotly.js from version 2.31.1 to version 2.32.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2320----2024-04-23) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
32+
- Add "bold" weight, "italic" style and "small-caps" variant options to fonts [#6956]
33+
- Fix applying autotickangles on axes with showdividers as well as cases where tickson is set to "boundaries" [#6967], with thanks to @my-tien for the contribution!
34+
- Fix positioning of multi-line axis titles with standoff [#6970], with thanks to @my-tien for the contribution!
35+
36+
## [5.21.0] - 2024-04-17
37+
38+
### Updated
39+
- Updated Plotly.js from version 2.30.0 to version 2.31.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2311----2024-04-15) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
40+
- Add `zorder` attribute to various cartesian traces for controlling stacking order of SVG traces drawn into a subplot [[#6918](https://github.com/plotly/plotly.js/pull/6918), [#6953](https://github.com/plotly/plotly.js/pull/6953)],
41+
This feature was anonymously sponsored: thank you to our sponsor!
42+
- Add "between" option to shape layer for placing them above grid lines and below traces [[#6927](https://github.com/plotly/plotly.js/pull/6927)],
43+
with thanks to @my-tien for the contribution!
44+
- Add "raw" `sizemode` to cone trace [[#6938](https://github.com/plotly/plotly.js/pull/6938)]
45+
- Add `layout.hoversubplots` to enable hover effects across multiple cartesian suplots sharing one axis [[#6947](https://github.com/plotly/plotly.js/pull/6947), [#6950](https://github.com/plotly/plotly.js/pull/6950)]
46+
47+
### Fixed
48+
- Fixed `orjson` loading issue [[#4562](https://github.com/plotly/plotly.py/pull/4562)]
49+
50+
## [5.20.0] - 2024-03-13
51+
52+
### Updated
53+
- Updated Plotly.js from version 2.29.1 to version 2.30.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2300----2024-03-06) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
54+
- Add fill gradients for scatter traces [[#6905](https://github.com/plotly/plotly.js/pull/6905)], with thanks to @lumip for the contribution!
55+
- Add `indentation` to legend [[#6874](https://github.com/plotly/plotly.js/pull/6874)], with thanks to @my-tien for the contribution!
56+
57+
## [5.19.0] - 2024-02-15
58+
59+
### Updated
60+
61+
- Updated Plotly.js from version 2.27.0 to version 2.29.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2291----2024-02-12) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module. Notable changes include:
62+
- Add `layout.barcornerradius` and `trace.marker.cornerradius` properties to support rounding the corners of bar traces [[#6761](https://github.com/plotly/plotly.js/pull/6761)],
63+
with thanks to [Displayr](https://www.displayr.com) for sponsoring development!
64+
- Add `autotickangles` to cartesian and radial axes [[#6790](https://github.com/plotly/plotly.js/pull/6790)], with thanks to @my-tien for the contribution!
65+
- Add `align` option to sankey nodes to control horizontal alignment [[#6800](https://github.com/plotly/plotly.js/pull/6800)],
66+
with thanks to @adamreeve for the contribution!
67+
- Add the possibility of loading "virtual-webgl" script for WebGL 1 to help display several WebGL contexts on a page [[#6784](https://github.com/plotly/plotly.js/pull/6784)], with thanks to @greggman for the contribution!
68+
- Add options to use base64 encoding (`bdata`) and `shape` (for 2 dimensional arrays) to declare various typed arrays i.e. `dtype=(float64|float32|int32|int16|int8|uint32|uint16|uint8)` [[#5230](https://github.com/plotly/plotly.js/pull/5230)]
69+
- Adjust stamen styles to point to `stadiamaps.com`, the users may also need to provide their own API_KEY via `config.mapboxAccessToken` [[#6776](https://github.com/plotly/plotly.js/pull/6776), [#6778](https://github.com/plotly/plotly.js/pull/6778)]
70+
- Removed Python 3.6 and Python 3.7 support [[#4492](https://github.com/plotly/plotly.py/pull/4492)]
671

772
### Fixed
73+
- Ensure scatter `mode` is deterministic from `px` [[#4429](https://github.com/plotly/plotly.py/pull/4429)]
874
- Fix issue with creating dendrogram in subplots [[#4411](https://github.com/plotly/plotly.py/pull/4411)],
9-
- Fix issue with px.line not accepting "spline" line shape [[#2812](https://github.com/plotly/plotly.py/issues/2812)],
75+
- Fix issue with px.line not accepting "spline" line shape [[#2812](https://github.com/plotly/plotly.py/issues/2812)]
76+
- Fix KeyError when using column of `pd.Categorical` dtype with unobserved categories [[#4437](https://github.com/plotly/plotly.py/pull/4437)]
77+
- Fix dataframe interchange in case `column_names` returns an unmaterialized object: generator, iterator, etc. [[#4442]](https://github.com/plotly/plotly.py/pull/4442)
78+
- Fix issue with `FutureWarning` being displayed when setting the `color` argument in `plotly.express` [[#4519]](https://github.com/plotly/plotly.py/pull/4519)
1079

1180
## [5.18.0] - 2023-10-25
1281

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,16 @@
3131
</tr>
3232
</table>
3333

34+
<div align="center">
35+
<a href="https://dash.plotly.com/project-maintenance">
36+
<img src="https://dash.plotly.com/assets/images/maintained-by-plotly.png" width="400px" alt="Maintained by Plotly">
37+
</a>
38+
</div>
39+
40+
3441
## Quickstart
3542

36-
`pip install plotly==5.18.0`
43+
`pip install plotly==5.23.0`
3744

3845
Inside [Jupyter](https://jupyter.org/install) (installable with `pip install "jupyterlab>=3" "ipywidgets>=7.6"`):
3946

@@ -78,13 +85,13 @@ Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is
7885
plotly.py may be installed using pip...
7986

8087
```
81-
pip install plotly==5.18.0
88+
pip install plotly==5.23.0
8289
```
8390

8491
or conda.
8592

8693
```
87-
conda install -c plotly plotly=5.18.0
94+
conda install -c plotly plotly=5.23.0
8895
```
8996

9097
### JupyterLab Support
@@ -106,7 +113,7 @@ The instructions above apply to JupyterLab 3.x. **For JupyterLab 2 or earlier**,
106113

107114
```
108115
# JupyterLab 2.x renderer support
109-
jupyter labextension install jupyterlab-plotly@5.18.0 @jupyter-widgets/jupyterlab-manager
116+
jupyter labextension install jupyterlab-plotly@5.23.0 @jupyter-widgets/jupyterlab-manager
110117
```
111118

112119
Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.

binder/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
jupytext
2-
plotly==5.18.0
2+
plotly==5.23.0
33
jupyter
44
notebook
5-
pandas==1.0.3
6-
statsmodels==0.11.1
5+
pandas==2.2.2
6+
statsmodels==0.14.2
77
scipy
8-
patsy==0.5.1
8+
patsy==0.5.6
99
numpy
1010
plotly-geo
1111
psutil

0 commit comments

Comments
 (0)