Skip to content

Commit 2198872

Browse files
authored
Merge branch 'master' into handle_spacing_with_spec
2 parents dc6e7bb + 956ab2c commit 2198872

File tree

18 files changed

+60
-22
lines changed

18 files changed

+60
-22
lines changed

Diff for: .circleci/config.yml

+10
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@ jobs:
150150
- test_optional:
151151
py: "39"
152152

153+
# Pandas
154+
155+
python_39_pandas_2_optional:
156+
docker:
157+
- image: circleci/python:3.9-buster-node-browsers
158+
steps:
159+
- test_optional:
160+
py: "39_pandas_2"
161+
153162
# Orca
154163
python_38_orca:
155164
docker:
@@ -470,6 +479,7 @@ workflows:
470479
- python_37_optional
471480
- python_38_optional
472481
- python_39_optional
482+
- python_39_pandas_2_optional
473483
- python_38_orca
474484
- python_37_percy
475485
- build-doc

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
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+
## [5.14.1] - 2023-04-05
6+
7+
### Fixed
8+
- Fixed compatibility issue with Pandas 2.0 [[#4103](https://github.com/plotly/plotly.py/pull/4103)]
9+
510
## [5.14.0] - 2023-03-29
611

712
### Updated

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
## Quickstart
3535

36-
`pip install plotly==5.14.0`
36+
`pip install plotly==5.14.1`
3737

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

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

8080
```
81-
pip install plotly==5.14.0
81+
pip install plotly==5.14.1
8282
```
8383

8484
or conda.
8585

8686
```
87-
conda install -c plotly plotly=5.14.0
87+
conda install -c plotly plotly=5.14.1
8888
```
8989

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

107107
```
108108
# JupyterLab 2.x renderer support
109-
jupyter labextension install [email protected].0 @jupyter-widgets/jupyterlab-manager
109+
jupyter labextension install [email protected].1 @jupyter-widgets/jupyterlab-manager
110110
```
111111

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

Diff for: binder/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jupytext
2-
plotly==5.14.0
2+
plotly==5.14.1
33
jupyter
44
notebook
55
pandas==1.0.3

Diff for: doc/apidoc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
# The short X.Y version
2929
version = ""
3030
# The full version, including alpha/beta/rc tags
31-
release = "5.14.0"
31+
release = "5.14.1"
3232

3333

3434
# -- General configuration ---------------------------------------------------

Diff for: doc/python/getting-started.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ We also encourage you to join the [Plotly Community Forum](http://community.plot
5858
`plotly` may be installed using `pip`:
5959

6060
```
61-
$ pip install plotly==5.14.0
61+
$ pip install plotly==5.14.1
6262
```
6363

6464
or `conda`:
6565

6666
```
67-
$ conda install -c plotly plotly=5.14.0
67+
$ conda install -c plotly plotly=5.14.1
6868
```
6969
This package contains everything you need to write figures to standalone HTML files.
7070

@@ -152,7 +152,7 @@ The instructions above apply to JupyterLab 3.x. **For JupyterLab 2 or earlier**,
152152

153153
```
154154
# JupyterLab 2.x renderer support
155-
jupyter labextension install [email protected].0 @jupyter-widgets/jupyterlab-manager
155+
jupyter labextension install [email protected].1 @jupyter-widgets/jupyterlab-manager
156156
```
157157

158158
Please check out our [Troubleshooting guide](/python/troubleshooting/) if you run into any problems with JupyterLab, particularly if you are using multiple python environments inside Jupyter.

Diff for: doc/python/horizontal-vertical-shapes.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ fig.show()
145145

146146
[Text labels on shapes](/python/shapes/#addingtextlabelstoshapes), introduced in version 5.14, is now the recommended way to add text to shapes. The above examples using `add_hline`, `add_vrect`, `add_hrect`, and `add_vline` that add annotations can be rewritten to use `label`.
147147

148-
149148
```python
150149
import plotly.express as px
151150

@@ -177,7 +176,7 @@ fig.show()
177176

178177
```
179178

180-
With [text labels on shapes](/python/shapes/#addingtextlabelstoshapes), you can also add text labels to shapes other than lines and rectangles, and the labels can be added automatically to shapes drawn by the user.
179+
With [text labels on shapes](/python/shapes/#adding-text-labels-to-shapes), you can also add text labels to shapes other than lines and rectangles, and the labels can be added automatically to shapes drawn by the user.
181180

182181

183182
### Reference

Diff for: doc/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
plotly==5.14.0
1+
plotly==5.14.1
22
jupytext==1.1.1
33
ipywidgets==7.7.2
44
jupyter-client<7

Diff for: packages/javascript/jupyterlab-plotly/package-lock.json

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

Diff for: packages/javascript/jupyterlab-plotly/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-plotly",
3-
"version": "5.14.0",
3+
"version": "5.14.1",
44
"description": "The plotly Jupyter extension",
55
"author": "The plotly.py team",
66
"license": "MIT",

Diff for: packages/python/plotly/_plotly_utils/tests/validators/test_pandas_series_input.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def color_validator(request):
4040
"uint16",
4141
"uint32",
4242
"uint64",
43-
"float16",
43+
# "float16",
4444
"float32",
4545
"float64",
4646
]

Diff for: packages/python/plotly/_plotly_utils/tests/validators/test_xarray_input.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def color_validator(request):
4040
"uint16",
4141
"uint32",
4242
"uint64",
43-
"float16",
43+
# "float16",
4444
"float32",
4545
"float64",
4646
]

Diff for: packages/python/plotly/plotly/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ def plot(data_frame, kind, **kwargs):
102102
if kind == "line":
103103
return line(data_frame, **kwargs)
104104
if kind == "area":
105-
return area(data_frame, **kwargs)
105+
new_kwargs = {k: kwargs[k] for k in kwargs if k not in ["stacked"]}
106+
return area(data_frame, **new_kwargs)
106107
if kind == "bar":
107108
return bar(data_frame, **kwargs)
108109
if kind == "barh":

Diff for: packages/python/plotly/plotly/_widget_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# for automated dev builds
33
#
44
# It is edited by hand prior to official releases
5-
__frontend_version__ = "^5.14.0"
5+
__frontend_version__ = "^5.14.1"

Diff for: packages/python/plotly/plotly/express/_core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,9 @@ def process_dataframe_timeline(args):
16821682
)
16831683

16841684
# note that we are not adding any columns to the data frame here, so no risk of overwrite
1685-
args["data_frame"][args["x_end"]] = (x_end - x_start).astype("timedelta64[ms]")
1685+
args["data_frame"][args["x_end"]] = (x_end - x_start).astype(
1686+
"timedelta64[ns]"
1687+
) / np.timedelta64(1, "ms")
16861688
args["x"] = args["x_end"]
16871689
del args["x_end"]
16881690
args["base"] = args["x_start"]

Diff for: packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import numpy as np
1616
import pandas as pd
1717
import pytz
18-
from pandas.util.testing import assert_series_equal
18+
from pandas.testing import assert_series_equal
1919
import json as _json
2020
import os
2121
import base64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
requests==2.25.1
2+
tenacity==6.2.0
3+
pandas==2.0.0
4+
numpy==1.20.3
5+
xarray==0.17.0
6+
statsmodels
7+
Pillow==8.2.0
8+
pytest==6.2.3
9+
pytz==2021.1
10+
ipython[all]==7.22.0
11+
ipywidgets==8.0.2
12+
ipykernel==5.5.3
13+
jupyter==1.0.0
14+
scipy==1.6.2
15+
Shapely==1.7.1
16+
geopandas==0.9.0
17+
pyshp==2.1.3
18+
matplotlib==2.2.3
19+
scikit-image==0.18.1
20+
psutil==5.7.0
21+
kaleido

Diff for: release.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Manually update the versions to `X.Y.Z` in the files specified below.
3535

3636
- `CHANGELOG.md`
3737
+ update the release date
38-
- `packages/python/plotly/README.md`
38+
- `README.md`
3939
+ this must be done at this point because the README gets baked into PyPI
4040
- `plotly/_widget_version.py`:
4141
+ Update `__frontend_version__` to `^X.Y.Z` (Note the `^` prefix)

0 commit comments

Comments
 (0)