Skip to content

Commit

Permalink
Merge branch 'plotly:master' into change_version
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Jan 31, 2023
2 parents 1d82b88 + 2b6ec1e commit 46c8a85
Show file tree
Hide file tree
Showing 581 changed files with 22,661 additions and 2,134 deletions.
38 changes: 20 additions & 18 deletions .circleci/config.yml
Expand Up @@ -190,6 +190,7 @@ jobs:
- run:
name: Run percy snapshots
command: |
npm i @percy/cli
npx percy snapshot test/percy/
rm test/percy/*.html
Expand Down Expand Up @@ -263,8 +264,9 @@ jobs:
name: Create conda environment
command: |
conda create -n env --yes python=3.9 conda-build conda-verify
conda install -n env -c conda-forge jupyterlab nodejs=12
conda install -n env -c conda-forge jupyterlab nodejs=18
conda init bash
mkdir output
- run:
name: initial NPM Build
Expand All @@ -283,12 +285,8 @@ jobs:
conda activate env
cd packages/python/plotly
python setup.py sdist bdist_wheel
mkdir pypi_dist
tar czf pypi_dist/all.tgz dist
- store_artifacts:
path: packages/python/plotly/pypi_dist
destination: pypi_dist
cp -R dist ../../../output/dist
git status
- run:
name: Conda Build
Expand All @@ -297,12 +295,8 @@ jobs:
conda activate env
cd packages/python/plotly
conda build recipe/
mkdir conda_dist
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 conda_dist
- store_artifacts:
path: packages/python/plotly/conda_dist
destination: conda_dist
mv /opt/conda/envs/env/conda-bld/noarch/plotly*.tar.bz2 ../../../output
git status
- run:
name: NPM Pack
Expand All @@ -311,12 +305,21 @@ jobs:
conda activate env
cd packages/javascript/jupyterlab-plotly
npm pack
mkdir npm_dist
mv jupyterlab-plotly*.tgz npm_dist
mv jupyterlab-plotly*.tgz ../../../output
- run:
name: Zip output
command: |
tar czf output.tgz output
- run:
name: Git Diff
command: |
git status
git diff
- store_artifacts:
path: packages/javascript/jupyterlab-plotly/npm_dist
destination: npm_dist
path: output.tgz

build-doc:
resource_class: xlarge
Expand Down Expand Up @@ -469,5 +472,4 @@ workflows:
- python_39_optional
- python_38_orca
- python_37_percy
- python_37_chart_studio
- build-doc
41 changes: 40 additions & 1 deletion CHANGELOG.md
Expand Up @@ -2,7 +2,46 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [5.10.0] - 2022-08-11
## [5.13.0] - 2023-01-23

### Updated
- 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:
- 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!
- 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)]

### Fixed
- `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)]
- 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)]


## [5.12.0] - 2023-01-12

### Updated
- Support for ipywidgets 8 [[#3930](https://github.com/plotly/plotly.py/pull/3930)]
- 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:
- Add `shift` and `autoshift` to cartesian y axes to help avoid overlapping of multiple axes [[#6334](https://github.com/plotly/plotly.js/pull/6334)],
with thanks to [Gamma Technologies](https://www.gtisoft.com) for sponsoring the related development!
- Introduce group attributes for `scatter` trace i.e. `alignmentgroup`, `offsetgroup`, `scattermode` and `scattergap` [[#6381](https://github.com/plotly/plotly.js/pull/6381)],
this feature was anonymously sponsored: thank you to our sponsor!
- Add `marker.cornerradius` attribute to `treemap` trace [[#6351](https://github.com/plotly/plotly.js/pull/6351)]
### Fixed
- Fixed the usage of some deprecated NumPy types which were removed in NumPy 1.24 [[#3997](https://github.com/plotly/plotly.py/pull/3997)]
- Fixed bug for trendlines with datetime axes [[#3683](https://github.com/plotly/plotly.py/issues/3683)]
- `marker.angle` attribute now accepts iterables where appropriate [[#4013](https://github.com/plotly/plotly.py/issues/4013)]
- `selector=0` now correctly returns the first trace in `.select_traces()` and related methods [[#3817](https://github.com/plotly/plotly.py/issues/3817)]

## [5.11.0] - 2022-10-27

### Updated
- 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:
- Add clustering options to `scattermapbox` [[#5827](https://github.com/plotly/plotly.js/pull/5827)],
with thanks to @elben10 for the contribution!
- Add bounds to mapbox suplots [[6339](https://github.com/plotly/plotly.js/pull/6339)]
- 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)]
- Add `minreducedwidth` and `minreducedheight` to layout for increasing control over automargin [[#6307](https://github.com/plotly/plotly.js/pull/6307)]
- Add `entrywidth` and `entrywidthmode` to legend [[#6202](https://github.com/plotly/plotly.js/pull/6202), [#6324](https://github.com/plotly/plotly.js/pull/6324)]

## [5.10.0] - 2022-08-11

### Updated
- 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:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -33,7 +33,7 @@

## Quickstart

`pip install plotly==5.10.0`
`pip install plotly==5.13.0`

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

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

```
pip install plotly==5.10.0
pip install plotly==5.13.0
```

or conda.

```
conda install -c plotly plotly=5.10.0
conda install -c plotly plotly=5.13.0
```

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

```
# JupyterLab 2.x renderer support
jupyter labextension install jupyterlab-plotly@5.10.0 @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyterlab-plotly@5.13.0 @jupyter-widgets/jupyterlab-manager
```

Please check out our [Troubleshooting guide](https://plotly.com/python/troubleshooting/) if you run into any problems with JupyterLab.
Expand Down
2 changes: 1 addition & 1 deletion binder/requirements.txt
@@ -1,5 +1,5 @@
jupytext
plotly==5.10.0
plotly==5.13.0
jupyter
notebook
pandas==1.0.3
Expand Down
5 changes: 2 additions & 3 deletions contributing.md
Expand Up @@ -9,13 +9,12 @@ contribution.

## Code of Conduct

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

## What are the different ways to contribute?

There are many ways to contribute to plotly.py. It helps to understand first
the structure of the code and of the repository.
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.

- [the `plotly.graph_objects` module](https://plotly.com/python/graph-objects/) (usually imported as `go`)
is [generated from the Plotly.js schema](https://plotly.com/python/figure-structure/),
Expand Down
2 changes: 1 addition & 1 deletion doc/apidoc/conf.py
Expand Up @@ -28,7 +28,7 @@
# The short X.Y version
version = ""
# The full version, including alpha/beta/rc tags
release = "5.10.0"
release = "5.13.0"


# -- General configuration ---------------------------------------------------
Expand Down
10 changes: 7 additions & 3 deletions doc/python/3d-mesh.md
Expand Up @@ -5,8 +5,8 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.2'
jupytext_version: 1.6.0
format_version: '1.3'
jupytext_version: 1.14.1
kernelspec:
display_name: Python 3
language: python
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.7.6
version: 3.8.8
plotly:
description: How to make 3D Mesh Plots
display_as: 3d_charts
Expand Down Expand Up @@ -81,6 +81,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
IFrame(snippet_url + '3d-mesh', width='100%', height=1200)
```

<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.
<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>


### Mesh Tetrahedron

In this example we use the `i`, `j` and `k` parameters to specify manually the geometry of the triangles of the mesh.
Expand Down
10 changes: 7 additions & 3 deletions doc/python/3d-scatter-plots.md
Expand Up @@ -5,8 +5,8 @@ jupyter:
text_representation:
extension: .md
format_name: markdown
format_version: '1.2'
jupytext_version: 1.6.0
format_version: '1.3'
jupytext_version: 1.14.1
kernelspec:
display_name: Python 3
language: python
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.7.6
version: 3.8.8
plotly:
description: How to make 3D scatter plots in Python with Plotly.
display_as: 3d_charts
Expand Down Expand Up @@ -85,6 +85,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
IFrame(snippet_url + '3d-scatter-plots', width='100%', height=1200)
```

<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.
<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>


### 3D Scatter Plot with go.Scatter3d

#### Basic 3D Scatter Plot
Expand Down
2 changes: 1 addition & 1 deletion doc/python/aggregations.md
Expand Up @@ -191,7 +191,7 @@ layout = dict(
method = 'restyle',
), dict(
args = ['xbins.size', 'M3'],
label = 'Quater',
label = 'Quarter',
method = 'restyle',
), dict(
args = ['xbins.size', 'M6'],
Expand Down
10 changes: 7 additions & 3 deletions doc/python/axes.md
Expand Up @@ -6,9 +6,9 @@ jupyter:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.13.7
jupytext_version: 1.14.1
kernelspec:
display_name: Python 3 (ipykernel)
display_name: Python 3
language: python
name: python3
language_info:
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.9.7
version: 3.8.8
plotly:
description: How to adjust axes properties in Python - axes titles, styling and
coloring axes and grid lines, ticks, tick labels and more.
Expand Down Expand Up @@ -137,6 +137,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
IFrame(snippet_url + 'axes', width='100%', height=1200)
```

<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.
<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>


#### Moving Tick Labels Inside the Plot

The `ticklabelposition` attribute moves tick labels inside the plotting area, and modifies the auto-range behaviour to accommodate the labels.
Expand Down
8 changes: 6 additions & 2 deletions doc/python/bar-charts.md
Expand Up @@ -6,7 +6,7 @@ jupyter:
extension: .md
format_name: markdown
format_version: '1.3'
jupytext_version: 1.13.4
jupytext_version: 1.14.1
kernelspec:
display_name: Python 3
language: python
Expand All @@ -20,7 +20,7 @@ jupyter:
name: python
nbconvert_exporter: python
pygments_lexer: ipython3
version: 3.8.11
version: 3.8.8
plotly:
description: How to make Bar Charts in Python with Plotly.
display_as: basic
Expand Down Expand Up @@ -100,6 +100,10 @@ snippet_url = 'https://python-docs-dash-snippets.herokuapp.com/python-docs-dash-
IFrame(snippet_url + 'bar-charts', width='100%', height=1200)
```

<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.
<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>


### Colored Bars

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.
Expand Down
2 changes: 1 addition & 1 deletion doc/python/bio-alignment-chart.md
Expand Up @@ -44,7 +44,7 @@ Note that the AlignmentChart only returns a chart of the sequence, while Alignme
import plotly.express as px
import pandas as pd

df = (pd.read_csv('https://git.io/gene_conservation.csv')
df = (pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Genetic/gene_conservation.csv')
.set_index('0')
.loc[['consensus','conservation']]
.T
Expand Down
6 changes: 3 additions & 3 deletions doc/python/bio-clustergram.md
Expand Up @@ -40,7 +40,7 @@ import pandas as pd
import dash_bio


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

dash_bio.Clustergram(
data=df,
Expand All @@ -60,7 +60,7 @@ import pandas as pd
import dash_bio


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

dash_bio.Clustergram(
data=df,
Expand All @@ -86,7 +86,7 @@ import pandas as pd
import dash_bio


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

dash_bio.Clustergram(
data=df,
Expand Down
4 changes: 2 additions & 2 deletions doc/python/bio-manhattanplot.md
Expand Up @@ -41,7 +41,7 @@ import pandas as pd
import dash_bio


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


dash_bio.ManhattanPlot(
Expand All @@ -57,7 +57,7 @@ import pandas as pd
import dash_bio


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

dash_bio.ManhattanPlot(
dataframe=df,
Expand Down
4 changes: 2 additions & 2 deletions doc/python/bio-volcano-plot.md
Expand Up @@ -41,7 +41,7 @@ import pandas as pd
import dash_bio


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

dash_bio.VolcanoPlot(
dataframe=df,
Expand All @@ -57,7 +57,7 @@ import pandas as pd
import dash_bio


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

dash_bio.VolcanoPlot(
dataframe=df,
Expand Down

0 comments on commit 46c8a85

Please sign in to comment.