Skip to content

Commit a8f969d

Browse files
Merge branch 'master' into doc-prod
2 parents fda65ba + 18f2f32 commit a8f969d

Some content is hidden

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

74 files changed

+2207
-1935
lines changed

Diff for: .circleci/config.yml

+34-39
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
- checkout
1010
- run:
1111
name: Install black
12-
command: 'sudo pip install black'
12+
command: "sudo pip install black"
1313
- run:
1414
name: Check formatting with black
15-
command: 'black --check .'
15+
command: "black --check ."
1616

1717
# Core
1818
python-2.7-core:
@@ -25,10 +25,10 @@ jobs:
2525
- checkout
2626
- run:
2727
name: Install tox
28-
command: 'sudo pip install tox'
28+
command: "sudo pip install tox"
2929
- run:
3030
name: Test with tox
31-
command: 'cd packages/python/plotly; tox -e py27-core'
31+
command: "cd packages/python/plotly; tox -e py27-core"
3232
no_output_timeout: 20m
3333

3434
python-3.5-core:
@@ -41,10 +41,10 @@ jobs:
4141
- checkout
4242
- run:
4343
name: Install tox
44-
command: 'sudo pip install tox'
44+
command: "sudo pip install tox"
4545
- run:
4646
name: Test with tox
47-
command: 'cd packages/python/plotly; tox -e py35-core'
47+
command: "cd packages/python/plotly; tox -e py35-core"
4848
no_output_timeout: 20m
4949

5050
python-3.6-core:
@@ -57,10 +57,10 @@ jobs:
5757
- checkout
5858
- run:
5959
name: Install tox
60-
command: 'sudo pip install tox'
60+
command: "sudo pip install tox"
6161
- run:
6262
name: Test with tox
63-
command: 'cd packages/python/plotly; tox -e py36-core'
63+
command: "cd packages/python/plotly; tox -e py36-core"
6464
no_output_timeout: 20m
6565

6666
python-3.7-core:
@@ -73,10 +73,10 @@ jobs:
7373
- checkout
7474
- run:
7575
name: Install tox
76-
command: 'sudo pip install tox'
76+
command: "sudo pip install tox"
7777
- run:
7878
name: Test with tox
79-
command: 'cd packages/python/plotly; tox -e py37-core'
79+
command: "cd packages/python/plotly; tox -e py37-core"
8080
no_output_timeout: 20m
8181

8282
python-3.7-percy:
@@ -122,14 +122,14 @@ jobs:
122122
- checkout
123123
- run:
124124
name: Install tox
125-
command: 'sudo pip install tox'
125+
command: "sudo pip install tox"
126126
- run:
127127
name: Install npm dependencies
128128
command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
129129
no_output_timeout: 20m
130130
- run:
131131
name: Test with tox
132-
command: 'cd packages/python/plotly; tox -e py27-optional'
132+
command: "cd packages/python/plotly; tox -e py27-optional"
133133
no_output_timeout: 20m
134134

135135
python-3.5-optional:
@@ -142,14 +142,14 @@ jobs:
142142
- checkout
143143
- run:
144144
name: Install tox
145-
command: 'sudo pip install tox'
145+
command: "sudo pip install tox"
146146
- run:
147147
name: Install npm dependencies
148148
command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
149149
no_output_timeout: 20m
150150
- run:
151151
name: Test with tox
152-
command: 'cd packages/python/plotly; tox -e py35-optional'
152+
command: "cd packages/python/plotly; tox -e py35-optional"
153153
no_output_timeout: 20m
154154

155155
python-3.6-optional:
@@ -162,14 +162,14 @@ jobs:
162162
- checkout
163163
- run:
164164
name: Install tox
165-
command: 'sudo pip install tox'
165+
command: "sudo pip install tox"
166166
- run:
167167
name: Install npm dependencies
168168
command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
169169
no_output_timeout: 20m
170170
- run:
171171
name: Test with tox
172-
command: 'cd packages/python/plotly; tox -e py36-optional'
172+
command: "cd packages/python/plotly; tox -e py36-optional"
173173
no_output_timeout: 20m
174174

175175
python-3.7-optional:
@@ -182,14 +182,14 @@ jobs:
182182
- checkout
183183
- run:
184184
name: Install tox
185-
command: 'sudo pip install tox'
185+
command: "sudo pip install tox"
186186
- run:
187187
name: Install npm dependencies
188188
command: cd packages/python/plotly/plotly/tests/test_optional/test_jupyter && npm install
189189
no_output_timeout: 20m
190190
- run:
191191
name: Test with tox
192-
command: 'cd packages/python/plotly; tox -e py37-optional'
192+
command: "cd packages/python/plotly; tox -e py37-optional"
193193
no_output_timeout: 20m
194194

195195
# Plot.ly
@@ -203,10 +203,10 @@ jobs:
203203
- checkout
204204
- run:
205205
name: Install tox
206-
command: 'sudo pip install tox'
206+
command: "sudo pip install tox"
207207
- run:
208208
name: Test with tox
209-
command: 'cd packages/python/chart-studio; tox -e py27-plot_ly'
209+
command: "cd packages/python/chart-studio; tox -e py27-plot_ly"
210210
no_output_timeout: 20m
211211

212212
python-3.5-plot_ly:
@@ -219,10 +219,10 @@ jobs:
219219
- checkout
220220
- run:
221221
name: Install tox
222-
command: 'sudo pip install tox'
222+
command: "sudo pip install tox"
223223
- run:
224224
name: Test with tox
225-
command: 'cd packages/python/chart-studio; tox -e py35-plot_ly'
225+
command: "cd packages/python/chart-studio; tox -e py35-plot_ly"
226226
no_output_timeout: 20m
227227

228228
python-3.7-plot_ly:
@@ -235,10 +235,10 @@ jobs:
235235
- checkout
236236
- run:
237237
name: Install tox
238-
command: 'sudo pip install tox'
238+
command: "sudo pip install tox"
239239
- run:
240240
name: Test with tox
241-
command: 'cd packages/python/chart-studio; tox -e py37-plot_ly'
241+
command: "cd packages/python/chart-studio; tox -e py37-plot_ly"
242242
no_output_timeout: 20m
243243

244244
python-2-7-orca:
@@ -269,7 +269,7 @@ jobs:
269269
pytest packages/python/plotly/plotly/tests/test_orca
270270
271271
- store_artifacts:
272-
path: plotly/tests/test_orca/images/linux/failed
272+
path: plotly/tests/test_orca/images/linux/failed
273273

274274
python-3-5-orca:
275275
docker:
@@ -299,7 +299,7 @@ jobs:
299299
pytest packages/python/plotly/plotly/tests/test_orca
300300
301301
- store_artifacts:
302-
path: plotly/tests/test_orca/images/linux/failed
302+
path: plotly/tests/test_orca/images/linux/failed
303303

304304
python-3-7-orca:
305305
docker:
@@ -325,12 +325,12 @@ jobs:
325325
command: |
326326
. /home/circleci/miniconda/etc/profile.d/conda.sh
327327
conda activate circle_optional
328-
pytest --doctest-modules --ignore packages/python/plotly/plotly/tests --ignore packages/python/plotly/plotly/matplotlylib/mplexporter/tests packages/python/plotly/plotly
328+
pytest --doctest-modules --ignore packages/python/plotly/plotly/tests --ignore packages/python/plotly/plotly/matplotlylib/mplexporter/tests packages/python/plotly/plotly
329329
pytest --disable-warnings packages/python/plotly/plotly/tests/test_core
330330
pytest packages/python/plotly/plotly/tests/test_orca
331331
332332
- store_artifacts:
333-
path: plotly/tests/test_orca/images/linux/failed
333+
path: plotly/tests/test_orca/images/linux/failed
334334

335335
plotlyjs_dev_build:
336336
docker:
@@ -343,13 +343,13 @@ jobs:
343343
- checkout
344344
- run:
345345
name: Install tox
346-
command: 'sudo pip install retrying tox black inflect'
346+
command: "sudo pip install retrying tox black inflect"
347347
- run:
348348
name: Update jupyterlab-plotly version
349-
command: 'cd packages/python/plotly; python setup.py updateplotlywidgetversion'
349+
command: "cd packages/python/plotly; python setup.py updateplotlywidgetversion"
350350
- run:
351351
name: Update plotly.js to dev
352-
command: 'cd packages/python/plotly; python setup.py updateplotlyjsdev'
352+
command: "cd packages/python/plotly; python setup.py updateplotlyjsdev"
353353
- run:
354354
name: Test with tox
355355
command: |
@@ -385,15 +385,13 @@ jobs:
385385
- store_artifacts:
386386
path: packages/python/plotly/dist
387387

388-
389388
build-doc:
390389
resource_class: xlarge
391390
docker:
392391
# specify the version you desire here
393392
# use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers`
394393
- image: circleci/python:3.6.8-node
395394

396-
397395
working_directory: ~/project
398396

399397
steps:
@@ -419,12 +417,12 @@ jobs:
419417
npm install [email protected]
420418
npm install orca
421419
pip install -r requirements.txt
422-
if [ "${CIRCLE_BRANCH}" == "master" ]; then
420+
if [ "${CIRCLE_BRANCH}" != "doc-prod" ]; then
423421
pip uninstall -y plotly
424422
cd ../packages/python/plotly
425423
python3 setup.py install
426-
cd ../../../doc
427-
fi
424+
cd ../../../doc
425+
fi
428426
echo 'export PATH="/home/circleci/project/doc/node_modules/.bin:$PATH"' >> $BASH_ENV
429427
sudo apt-get install -y poppler-utils libxtst6 xvfb libgtk2.0-0 libgconf-2-4 libnss3 libasound2
430428
cd ..
@@ -484,12 +482,9 @@ jobs:
484482
485483
cd ../..
486484
487-
488485
- store_artifacts:
489486
path: doc/build
490487
destination: doc/build
491-
492-
493488

494489
workflows:
495490
version: 2

Diff for: CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
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.4.0] - 2019-12-10
6+
7+
### Updated
8+
- Updated Plotly.js to version 1.51.2. See the
9+
[plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#1512----2019-11-25)
10+
for more information
11+
- The tutorials of the [plotly.py documentation](https://plot.ly/python/) are
12+
now in the main [plotly.py Github repository](https://github.com/plotly/plotly.py). Contributions in order to improve or extend the documentation are very welcome!
13+
- `plotly.express` generated plots no longer have a default height of 600 pixels, instead they inherit the default height of regular figures [#1990](https://github.com/plotly/plotly.py/pull/1990). Note that the `height` argument to each `plotly.express` function can be set to 600 to restore the legacy behavior.
14+
15+
### Fixed
16+
17+
- Fixed a plotly.express input bug when using data frame indices[#1934](https://github.com/plotly/plotly.py/pull/1934)
18+
- Fixed how to display facet labels with plotly express [#1966](https://github.com/plotly/plotly.py/pull/1966)
19+
- Fixed a bug to use correctly the `zmin/zmax` parameter in `px.imshow` for single-channel images [#1981](https://github.com/plotly/plotly.py/pull/1981)
20+
- Clipped docstring width for better display in Jupyterlab [#1939](https://github.com/plotly/plotly.py/pull/1939). Thank you @joelostblom!
21+
- Fixed a bug in the case of external orca server [#1915](https://github.com/plotly/plotly.py/pull/1915) thank you @dev-dsp!
22+
23+
### Added
24+
25+
- Extended the plotly.express functional API with .. new functions: `px.pie`,
26+
`px.sunburst`, `px.treemap`, `px.funnel`, and `px.funnelarea` ([#1909](https://github.com/plotly/plotly.py/pull/1909)) `px.density_mapbox` and
27+
`px.choropleth_mapbox` [#1937](https://github.com/plotly/plotly.py/pull/1937). Also, all mapbox functions in plotly.express have new arguments `center` and `mapbox_style` [#1937](https://github.com/plotly/plotly.py/pull/1937).
28+
- plotly.express polar plots (`scatter_polar`, `line_polar`, `bar_polar`) now
29+
have a `range_theta` keyword argument for representing only an angular
30+
section [#1969](https://github.com/plotly/plotly.py/pull/1969).
31+
- Docstrings of plotly.py are now doctested [#1921](https://github.com/plotly/plotly.py/pull/1921).
32+
533
## [4.3.0] - 2019-11-11
634

735
### Updated

Diff for: README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
## Quickstart
2828

29-
`pip install plotly==4.3.0`
29+
`pip install plotly==4.4.0`
3030

3131
Inside [Jupyter notebook](https://jupyter.org/install) (installable with `pip install "notebook>=5.3" "ipywidgets>=7.2"`):
3232
```python
@@ -72,12 +72,12 @@ Built on top of [plotly.js](https://github.com/plotly/plotly.js), `plotly.py` is
7272

7373
plotly.py may be installed using pip...
7474
```
75-
pip install plotly==4.3.0
75+
pip install plotly==4.4.0
7676
```
7777

7878
or conda.
7979
```
80-
conda install -c plotly plotly=4.3.0
80+
conda install -c plotly plotly=4.4.0
8181
```
8282

8383
### Jupyter Notebook Support
@@ -105,7 +105,7 @@ pip install jupyterlab==1.2 "ipywidgets==7.5"
105105
or conda.
106106

107107
```
108-
conda install -c conda-forge jupyterlab=1.2
108+
conda install jupyterlab=1.2
109109
conda install "ipywidgets=7.5"
110110
```
111111

@@ -121,10 +121,10 @@ set NODE_OPTIONS=--max-old-space-size=4096
121121
jupyter labextension install @jupyter-widgets/[email protected] --no-build
122122
123123
# FigureWidget support
124-
jupyter labextension install plotlywidget@1.3.0 --no-build
124+
jupyter labextension install plotlywidget@1.4.0 --no-build
125125
126126
# and jupyterlab renderer support
127-
jupyter labextension install jupyterlab-plotly@1.3.0 --no-build
127+
jupyter labextension install jupyterlab-plotly@1.4.0 --no-build
128128
129129
# Build extensions (must be done to activate extensions since --no-build is used above)
130130
jupyter lab build

0 commit comments

Comments
 (0)