Skip to content

Commit 7ced4e1

Browse files
Merge branch 'doc-prod' into sankey-arrows
2 parents 3d9aece + f2f945b commit 7ced4e1

File tree

581 files changed

+22656
-2138
lines changed

Some content is hidden

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

581 files changed

+22656
-2138
lines changed

Diff for: .circleci/config.yml

+20-18
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ jobs:
190190
- run:
191191
name: Run percy snapshots
192192
command: |
193+
npm i @percy/cli
193194
npx percy snapshot test/percy/
194195
rm test/percy/*.html
195196
@@ -263,8 +264,9 @@ jobs:
263264
name: Create conda environment
264265
command: |
265266
conda create -n env --yes python=3.9 conda-build conda-verify
266-
conda install -n env -c conda-forge jupyterlab nodejs=12
267+
conda install -n env -c conda-forge jupyterlab nodejs=18
267268
conda init bash
269+
mkdir output
268270
269271
- run:
270272
name: initial NPM Build
@@ -283,12 +285,8 @@ jobs:
283285
conda activate env
284286
cd packages/python/plotly
285287
python setup.py sdist bdist_wheel
286-
mkdir pypi_dist
287-
tar czf pypi_dist/all.tgz dist
288-
289-
- store_artifacts:
290-
path: packages/python/plotly/pypi_dist
291-
destination: pypi_dist
288+
cp -R dist ../../../output/dist
289+
git status
292290
293291
- run:
294292
name: Conda Build
@@ -297,12 +295,8 @@ jobs:
297295
conda activate env
298296
cd packages/python/plotly
299297
conda build recipe/
300-
mkdir conda_dist
301-
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 conda_dist
302-
303-
- store_artifacts:
304-
path: packages/python/plotly/conda_dist
305-
destination: conda_dist
298+
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 ../../../output
299+
git status
306300
307301
- run:
308302
name: NPM Pack
@@ -311,12 +305,21 @@ jobs:
311305
conda activate env
312306
cd packages/javascript/jupyterlab-plotly
313307
npm pack
314-
mkdir npm_dist
315-
mv jupyterlab-plotly*.tgz npm_dist
308+
mv jupyterlab-plotly*.tgz ../../../output
309+
310+
- run:
311+
name: Zip output
312+
command: |
313+
tar czf output.tgz output
314+
315+
- run:
316+
name: Git Diff
317+
command: |
318+
git status
319+
git diff
316320
317321
- store_artifacts:
318-
path: packages/javascript/jupyterlab-plotly/npm_dist
319-
destination: npm_dist
322+
path: output.tgz
320323

321324
build-doc:
322325
resource_class: xlarge
@@ -469,5 +472,4 @@ workflows:
469472
- python_39_optional
470473
- python_38_orca
471474
- python_37_percy
472-
- python_37_chart_studio
473475
- build-doc

Diff for: CHANGELOG.md

+40-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,46 @@
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.10.0] - 2022-08-11
5+
## [5.13.0] - 2023-01-23
6+
7+
### Updated
8+
- Updated Plotly.js to from version 2.17.1 to version 2.18.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2180----2023-01-19) for more information. Notable changes include:
9+
- Add `sync` tickmode option [[#6356](https://github.com/plotly/plotly.js/pull/6356), [#6443](https://github.com/plotly/plotly.js/pull/6443)], with thanks to @filipesantiagoAM and @VictorBezak for the contribution!
10+
- Build process now uses Node 18.x and version 2 lockfile (should be an invisible change for users) [[#4034](https://github.com/plotly/plotly.py/pull/4034)]
11+
12+
### Fixed
13+
- `write_html()` now explicitly encodes output as UTF-8 because Plotly.js' bundle contains such characters [[#4021](https://github.com/plotly/plotly.py/pull/4021)] and [[#4022](https://github.com/plotly/plotly.py/pull/4022)]
14+
- fixed `iframe` renderer regression from 5.12 and also fixed error when this renderer was used in the very first cell in a notebook [[#4036](https://github.com/plotly/plotly.py/pull/4036)]
15+
16+
17+
## [5.12.0] - 2023-01-12
18+
19+
### Updated
20+
- Support for ipywidgets 8 [[#3930](https://github.com/plotly/plotly.py/pull/3930)]
21+
- Updated Plotly.js to from version 2.16.1 to version 2.17.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2170----2022-12-22) for more information. Notable changes include:
22+
- Add `shift` and `autoshift` to cartesian y axes to help avoid overlapping of multiple axes [[#6334](https://github.com/plotly/plotly.js/pull/6334)],
23+
with thanks to [Gamma Technologies](https://www.gtisoft.com) for sponsoring the related development!
24+
- Introduce group attributes for `scatter` trace i.e. `alignmentgroup`, `offsetgroup`, `scattermode` and `scattergap` [[#6381](https://github.com/plotly/plotly.js/pull/6381)],
25+
this feature was anonymously sponsored: thank you to our sponsor!
26+
- Add `marker.cornerradius` attribute to `treemap` trace [[#6351](https://github.com/plotly/plotly.js/pull/6351)]
27+
### Fixed
28+
- Fixed the usage of some deprecated NumPy types which were removed in NumPy 1.24 [[#3997](https://github.com/plotly/plotly.py/pull/3997)]
29+
- Fixed bug for trendlines with datetime axes [[#3683](https://github.com/plotly/plotly.py/issues/3683)]
30+
- `marker.angle` attribute now accepts iterables where appropriate [[#4013](https://github.com/plotly/plotly.py/issues/4013)]
31+
- `selector=0` now correctly returns the first trace in `.select_traces()` and related methods [[#3817](https://github.com/plotly/plotly.py/issues/3817)]
32+
33+
## [5.11.0] - 2022-10-27
34+
35+
### Updated
36+
- Updated Plotly.js to from version 2.14.0 to version 2.16.1. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2161----2022-10-21) for more information. Notable changes include:
37+
- Add clustering options to `scattermapbox` [[#5827](https://github.com/plotly/plotly.js/pull/5827)],
38+
with thanks to @elben10 for the contribution!
39+
- Add bounds to mapbox suplots [[6339](https://github.com/plotly/plotly.js/pull/6339)]
40+
- Add `angle`, `angleref` and `standoff` to `marker` and add `backoff` to `line`; also introduce new arrow symbols to facilitate drawing networks [[#6297](https://github.com/plotly/plotly.js/pull/6297)]
41+
- Add `minreducedwidth` and `minreducedheight` to layout for increasing control over automargin [[#6307](https://github.com/plotly/plotly.js/pull/6307)]
42+
- Add `entrywidth` and `entrywidthmode` to legend [[#6202](https://github.com/plotly/plotly.js/pull/6202), [#6324](https://github.com/plotly/plotly.js/pull/6324)]
43+
44+
## [5.10.0] - 2022-08-11
645

746
### Updated
847
- Updated Plotly.js to from version 2.12.1 to version 2.14.0. See the [plotly.js CHANGELOG](https://github.com/plotly/plotly.js/blob/master/CHANGELOG.md#2140----2022-08-10) for more information. Notable changes include:

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.10.0`
36+
`pip install plotly==5.13.0`
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.10.0
81+
pip install plotly==5.13.0
8282
```
8383

8484
or conda.
8585

8686
```
87-
conda install -c plotly plotly=5.10.0
87+
conda install -c plotly plotly=5.13.0
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 jupyterlab-plotly@5.10.0 @jupyter-widgets/jupyterlab-manager
109+
jupyter labextension install jupyterlab-plotly@5.13.0 @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.10.0
2+
plotly==5.13.0
33
jupyter
44
notebook
55
pandas==1.0.3

Diff for: contributing.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ contribution.
99

1010
## Code of Conduct
1111

12-
Please check out the [Code of Conduct](CODE_OF_CONDUCT.md). Don't tl:dr; it,
12+
Please check out the [Code of Conduct](CODE_OF_CONDUCT.md). Don't skip it,
1313
but the general idea is to be nice.
1414

1515
## What are the different ways to contribute?
1616

17-
There are many ways to contribute to plotly.py. It helps to understand first
18-
the structure of the code and of the repository.
17+
There are many ways to contribute to plotly.py. To contribute effectively, it is important to first gain an understanding of the structure of the code and of the repository.
1918

2019
- [the `plotly.graph_objects` module](https://plotly.com/python/graph-objects/) (usually imported as `go`)
2120
is [generated from the Plotly.js schema](https://plotly.com/python/figure-structure/),

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.10.0"
31+
release = "5.13.0"
3232

3333

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

Diff for: doc/python/3d-mesh.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.6.0
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.8.8
2424
plotly:
2525
description: How to make 3D Mesh Plots
2626
display_as: 3d_charts
@@ -81,6 +81,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
8181
IFrame(snippet_url + '3d-mesh', width='100%', height=1200)
8282
```
8383

84+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);"><div style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture.
85+
<u><a href="https://go.plotly.com/dash-club?utm_source=Dash+Club+2022&utm_medium=graphing_libraries&utm_content=inline">Join now</a></u>.</p></div></div></div></div>
86+
87+
8488
### Mesh Tetrahedron
8589

8690
In this example we use the `i`, `j` and `k` parameters to specify manually the geometry of the triangles of the mesh.

Diff for: doc/python/3d-scatter-plots.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ jupyter:
55
text_representation:
66
extension: .md
77
format_name: markdown
8-
format_version: '1.2'
9-
jupytext_version: 1.6.0
8+
format_version: '1.3'
9+
jupytext_version: 1.14.1
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.7.6
23+
version: 3.8.8
2424
plotly:
2525
description: How to make 3D scatter plots in Python with Plotly.
2626
display_as: 3d_charts
@@ -85,6 +85,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
8585
IFrame(snippet_url + '3d-scatter-plots', width='100%', height=1200)
8686
```
8787

88+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);"><div style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture.
89+
<u><a href="https://go.plotly.com/dash-club?utm_source=Dash+Club+2022&utm_medium=graphing_libraries&utm_content=inline">Join now</a></u>.</p></div></div></div></div>
90+
91+
8892
### 3D Scatter Plot with go.Scatter3d
8993

9094
#### Basic 3D Scatter Plot

Diff for: doc/python/aggregations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ layout = dict(
191191
method = 'restyle',
192192
), dict(
193193
args = ['xbins.size', 'M3'],
194-
label = 'Quater',
194+
label = 'Quarter',
195195
method = 'restyle',
196196
), dict(
197197
args = ['xbins.size', 'M6'],

Diff for: doc/python/axes.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.13.7
9+
jupytext_version: 1.14.1
1010
kernelspec:
11-
display_name: Python 3 (ipykernel)
11+
display_name: Python 3
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.9.7
23+
version: 3.8.8
2424
plotly:
2525
description: How to adjust axes properties in Python - axes titles, styling and
2626
coloring axes and grid lines, ticks, tick labels and more.
@@ -137,6 +137,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
137137
IFrame(snippet_url + 'axes', width='100%', height=1200)
138138
```
139139

140+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);"><div style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture.
141+
<u><a href="https://go.plotly.com/dash-club?utm_source=Dash+Club+2022&utm_medium=graphing_libraries&utm_content=inline">Join now</a></u>.</p></div></div></div></div>
142+
143+
140144
#### Moving Tick Labels Inside the Plot
141145

142146
The `ticklabelposition` attribute moves tick labels inside the plotting area, and modifies the auto-range behaviour to accommodate the labels.

Diff for: doc/python/bar-charts.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.13.4
9+
jupytext_version: 1.14.1
1010
kernelspec:
1111
display_name: Python 3
1212
language: python
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.8.11
23+
version: 3.8.8
2424
plotly:
2525
description: How to make Bar Charts in Python with Plotly.
2626
display_as: basic
@@ -100,6 +100,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
100100
IFrame(snippet_url + 'bar-charts', width='100%', height=1200)
101101
```
102102

103+
<div style="font-size: 0.9em;"><div style="width: calc(100% - 30px); box-shadow: none; border: thin solid rgb(229, 229, 229);"><div style="padding: 5px;"><div><p><strong>Sign up for Dash Club</strong> → Free cheat sheets plus updates from Chris Parmer and Adam Schroeder delivered to your inbox every two months. Includes tips and tricks, community apps, and deep dives into the Dash architecture.
104+
<u><a href="https://go.plotly.com/dash-club?utm_source=Dash+Club+2022&utm_medium=graphing_libraries&utm_content=inline">Join now</a></u>.</p></div></div></div></div>
105+
106+
103107
### Colored Bars
104108

105109
The bar plot can be customized using keyword arguments, for example to use [continuous color](https://plotly.com/python/colorscales/), as below, or [discrete color](/python/discrete-color/), as above.

Diff for: doc/python/bio-alignment-chart.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Note that the AlignmentChart only returns a chart of the sequence, while Alignme
4444
import plotly.express as px
4545
import pandas as pd
4646

47-
df = (pd.read_csv('https://git.io/gene_conservation.csv')
47+
df = (pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Genetic/gene_conservation.csv')
4848
.set_index('0')
4949
.loc[['consensus','conservation']]
5050
.T

Diff for: doc/python/bio-clustergram.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import pandas as pd
4040
import dash_bio
4141

4242

43-
df = pd.read_csv('https://git.io/clustergram_brain_cancer.csv')
43+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Chromosomal/clustergram_brain_cancer.csv')
4444

4545
dash_bio.Clustergram(
4646
data=df,
@@ -60,7 +60,7 @@ import pandas as pd
6060
import dash_bio
6161

6262

63-
df = pd.read_csv('https://git.io/clustergram_brain_cancer.csv')
63+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Chromosomal/clustergram_brain_cancer.csv')
6464

6565
dash_bio.Clustergram(
6666
data=df,
@@ -86,7 +86,7 @@ import pandas as pd
8686
import dash_bio
8787

8888

89-
df = pd.read_csv('https://git.io/clustergram_brain_cancer.csv')
89+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Chromosomal/clustergram_brain_cancer.csv')
9090

9191
dash_bio.Clustergram(
9292
data=df,

Diff for: doc/python/bio-manhattanplot.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import pandas as pd
4141
import dash_bio
4242

4343

44-
df = pd.read_csv('https://git.io/manhattan_data.csv')
44+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/manhattan_data.csv')
4545

4646

4747
dash_bio.ManhattanPlot(
@@ -57,7 +57,7 @@ import pandas as pd
5757
import dash_bio
5858

5959

60-
df = pd.read_csv('https://git.io/manhattan_data.csv')
60+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/manhattan_data.csv')
6161

6262
dash_bio.ManhattanPlot(
6363
dataframe=df,

Diff for: doc/python/bio-volcano-plot.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import pandas as pd
4141
import dash_bio
4242

4343

44-
df = pd.read_csv('https://git.io/volcano_data1.csv')
44+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/volcano_data1.csv')
4545

4646
dash_bio.VolcanoPlot(
4747
dataframe=df,
@@ -57,7 +57,7 @@ import pandas as pd
5757
import dash_bio
5858

5959

60-
df = pd.read_csv('https://git.io/volcano_data1.csv')
60+
df = pd.read_csv('https://raw.githubusercontent.com/plotly/dash-bio-docs-files/master/volcano_data1.csv')
6161

6262
dash_bio.VolcanoPlot(
6363
dataframe=df,

0 commit comments

Comments
 (0)