Skip to content

Commit cf1c2b9

Browse files
committed
Merge branch 'master' into imshow-animation
2 parents 8cdc6af + 3e7967c commit cf1c2b9

File tree

462 files changed

+18339
-3659
lines changed

Some content is hidden

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

462 files changed

+18339
-3659
lines changed

.circleci/config.yml

+9
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,15 @@ jobs:
440440
git push --force [email protected]:plotly/plotly.py-docs.git master:built
441441
rm -rf .git
442442
cd ../..
443+
cd build/ipynb
444+
git init
445+
git config user.name plotlydocbot
446+
git config user.email [email protected]
447+
git add *
448+
git commit -m "build of https://github.com/plotly/plotly.py/commit/${CIRCLE_SHA1}"
449+
git push --force [email protected]:plotly/plotly.py-docs.git master:built_ipynb
450+
rm -rf .git
451+
cd ../..
443452
fi
444453
tar -zcf build/html.tgz build/html
445454
rm -rf build/html build/ipynb

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
plotly/_version.py export-subst
1+
packages/python/plotly/plotly/_version.py export-subst

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
github: plotly
12
custom: https://plot.ly/products/consulting-and-oem/

.github/pull_request_template.md

+1
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,6 @@ below :-).
3333
- [ ] For a new feature, I have added documentation examples in an existing or
3434
new tutorial notebook (please see the doc checklist as well).
3535
- [ ] I have added a CHANGELOG entry if fixing/changing/adding anything substantial.
36+
- [ ] For a new feature or a change in behaviour, I have updated the relevant docstrings in the code to describe the feature or behaviour (please see the doc checklist as well).
3637
3738
-->

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ node_modules/
3131

3232
# virtual envs
3333
vv
34-
venv
34+
venv*
3535

3636
# dist files
3737
build
@@ -46,4 +46,5 @@ temp-plot.html
4646
doc/python/.ipynb_checkpoints
4747
doc/python/.mapbox_token
4848
doc/.ipynb_checkpoints
49+
tags
4950
doc/check-or-enforce-order.py

CHANGELOG.md

+54-2
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,75 @@
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-
## [4.10.0] - unreleased
5+
## [4.13.0] - UNRELEASED
6+
7+
### Added
8+
9+
- `go.Figure` now has a `set_subplots` method to set subplots on an already
10+
existing figure.
11+
- Added `Turbo` colorscale
12+
13+
14+
## [4.12.1] - UNRELEASED
15+
16+
17+
18+
## [4.12.0] - 2020-10-23
19+
20+
### Added
21+
22+
- For `add_trace`, `add_shape`, `add_annotation` and `add_layout_image`, the `row` and/or `col` argument now also accept the string `"all"`. `row="all"` adds the object to all the subplot rows and `col="all"` adds the object to all the subplot columns. ([#2840](https://github.com/plotly/plotly.py/pull/2840))
23+
- Shapes that reference the plot axes in one dimension and the data in another dimension can be added with the new `add_hline`, `add_vline`, `add_hrect`, `add_vrect` functions, which also support the `row="all"` and `col="all"` arguments. ([#2840](https://github.com/plotly/plotly.py/pull/2840))
24+
- The `add_trace`, `add_shape`, `add_annotation`, `add_layout_image`, `add_hline`, `add_vline`, `add_hrect`, `add_vrect` functions accept an argument `exclude_empty_subplots` which if `True`, only adds the object to subplots already containing traces or layout objects. This is useful in conjunction with the `row="all"` and `col="all"` arguments. ([#2840](https://github.com/plotly/plotly.py/pull/2840))
25+
- For all `go.Figure` functions accepting a selector argument (e.g., `select_traces`), this argument can now also be a function which is passed each relevant graph object (in the case of `select_traces`, it is passed every trace in the figure). For graph objects where this function returns true, the graph object is included in the selection. ([#2844](https://github.com/plotly/plotly.py/pull/2844))
26+
27+
### Added
28+
29+
- Better magic underscore error messages. For example, `some_fig.update_layout(geo_ltaxis_showgrid=True)` shows `Bad property path:\ngeo_ltaxis_showgrid\n ^` and lists the valid properties for `geo`.
30+
31+
### Updated
32+
33+
- Updated Plotly.js to version 1.57.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.57.1/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module.
34+
35+
## [4.11.0] - 2020-10-01
36+
37+
### Updated
38+
39+
- Updated Plotly.js to version 1.56.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.56.0/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module.
40+
41+
## [4.10.0] - 2020-09-10
642

743
### Added
844

945
- Added `plotly.io.full_figure_for_development()` and `plotly.graph_objects.Figure.full_figure_for_development()` ([#2737](https://github.com/plotly/plotly.py/pull/2737))
1046

1147
### Updated
1248

49+
- The JSON serialization of plotly figures had been accelerated by handling
50+
differently figures with and without NaN and Inf values ([#2880](https://github.com/plotly/plotly.py/pull/2880)).
51+
52+
### Updated
53+
54+
- Updated Plotly.js to version 1.55.2. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/v1.55.2/CHANGELOG.md) for more information. These changes are reflected in the auto-generated `plotly.graph_objects` module.
1355
- `px.imshow` has a new `binary_string` boolean argument, which passes the
1456
image data as a b64 binary string when True. Using binary strings allow for
1557
faster image rendering and smaller figure size. Additional optional arguments
1658
`binary_backend`, `binary_format` and `binary_compression_level` control
1759
how to generate the b64 string ([#2691](https://github.com/plotly/plotly.py/pull/2691)
1860
- `px.imshow` has a new `constrast_rescaling` argument in order to choose how
19-
to set data values corresponding to the bounds of the color range
61+
to set data values corresponding to the bounds of the color range
2062
([#2691](https://github.com/plotly/plotly.py/pull/2691)
2163

64+
### Fixed
65+
66+
- Plotly Express no longer converts datetime columns of input dataframes to UTC ([#2749](https://github.com/plotly/plotly.py/pull/2749))
67+
- Plotly Express has more complete support for datetimes as additional `hover_data` ([#2749](https://github.com/plotly/plotly.py/pull/2749))
68+
- Histogram selection behaviour with `FigureWidget` ([#2711](https://github.com/plotly/plotly.py/pull/2711)) with thanks to [@meffmadd](https://github.com/meffmadd)
69+
- Behaviour of `full_html()` with `html=False` ([#2469](https://github.com/plotly/plotly.py/pull/2469)) with thanks to [@tallamjr](https://github.com/tallamjr)
70+
- `ff.distplot()` now only computes traces that will be shown ([#2730](https://github.com/plotly/plotly.py/pull/2730)) with thanks to [@akbo](https://github.com/akbo)
71+
- Pandas backend `.hist()` works with latest version of Pandas ([#2713](https://github.com/plotly/plotly.py/pull/2713)) with thanks to [@Kerybas](https://github.com/Kerybas)
72+
73+
2274
## [4.9.0] - 2020-07-16
2375

2476
### Added

README.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@
3131
</tr>
3232
</table>
3333

34+
## Data Science Workspaces
35+
36+
Our recommended IDE for Plotly’s Python graphing library is Dash Enterprise’s [Data Science Workspaces](https://plotly.com/dash/workspaces/), which has both Jupyter notebook and Python code file support.
37+
3438
## Quickstart
3539

36-
`pip install plotly==4.9.0`
40+
`pip install plotly==4.12.0`
3741

3842
Inside [Jupyter notebook](https://jupyter.org/install) (installable with `pip install "notebook>=5.3" "ipywidgets>=7.2"`):
3943

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

8488
```
85-
pip install plotly==4.9.0
89+
pip install plotly==4.12.0
8690
```
8791

8892
or conda.
8993

9094
```
91-
conda install -c plotly plotly=4.9.0
95+
conda install -c plotly plotly=4.12.0
9296
```
9397

9498
### Jupyter Notebook Support
@@ -125,18 +129,18 @@ Then run the following commands to install the required JupyterLab extensions (n
125129

126130
```
127131
# Basic JupyterLab renderer support
128-
jupyter labextension install jupyterlab-plotly@4.9.0
132+
jupyter labextension install jupyterlab-plotly@4.12.0
129133
130134
# OPTIONAL: Jupyter widgets extension for FigureWidget support
131-
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.9.0
135+
jupyter labextension install @jupyter-widgets/jupyterlab-manager plotlywidget@4.12.0
132136
```
133137

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

136140
### Static Image Export
137141

138142
plotly.py supports [static image export](https://plotly.com/python/static-image-export/),
139-
using the either the [`kaleido`](https://github.com/plotly/Kaleido)
143+
using either the [`kaleido`](https://github.com/plotly/Kaleido)
140144
package (recommended, supported as of `plotly` version 4.9) or the [orca](https://github.com/plotly/orca)
141145
command line utility (legacy as of `plotly` version 4.9).
142146

binder/requirements.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jupytext
2-
plotly==4.9.0
2+
plotly==4.12.0
33
jupyter
44
notebook
55
pandas==1.0.3
@@ -18,3 +18,4 @@ cufflinks==0.17.3
1818
kaleido
1919
scikit-learn
2020
umap-learn
21+
wget

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 = "4.9.0"
31+
release = "4.12.0"
3232

3333

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

0 commit comments

Comments
 (0)