From 6b2810e8870e87b62162ce8ce4eb05c725bac4ae Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Tue, 28 Jan 2025 16:37:00 -0500 Subject: [PATCH 1/4] Update contributing.md --- contributing.md | 1 + 1 file changed, 1 insertion(+) diff --git a/contributing.md b/contributing.md index ccdd22ed49..6c27f87e59 100644 --- a/contributing.md +++ b/contributing.md @@ -344,3 +344,4 @@ You're *strongly* encouraged to write tests that check your added functionality. When you write a new test anywhere under the `tests` directory, if your PR gets accepted, that test will run in a virtual machine to ensure that future changes don't break your contributions! Test accounts include: `PythonTest`, `PlotlyImageTest`, and `PlotlyStageTest`. + From bfdfcc36661d13503df079f1a20c00d167d50dcb Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 31 Jan 2025 10:17:55 -0500 Subject: [PATCH 2/4] Update performance.md --- doc/python/performance.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/python/performance.md b/doc/python/performance.md index e1ba9562b1..b162abaf8d 100644 --- a/doc/python/performance.md +++ b/doc/python/performance.md @@ -78,6 +78,10 @@ The following [array data types](https://numpy.org/devdocs/reference/arrays.scal Arrays or data types that are not supported for base64 encoding to Plotly.js's typed arrays specification will still work and render correctly with Plotly. Those arrays and or data types just won't have the performance benefits that Plotly.js's base64 typed arrays feature provides. +### Dash Design Kit Compatibility + +The Dash Design Kit `Graph` component from versions of Dash Design Kit earlier than 1.13 doesn't work with Plotly.py version 6 when using Python objects listed in the previous "Arrays and Data Types Supported". Upgrade Dash Design Kit to 1.13 or later to resolve this issue. + ### Unsupported Attributes Arrays passed to attributes with the following names are not supported for base64 encoding for rendering with Plotly.js. From f3163db61b82f7f74ece8c652ec3a2c58eb2f15f Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 31 Jan 2025 10:26:57 -0500 Subject: [PATCH 3/4] Update v6-changes.md --- doc/python/v6-changes.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/python/v6-changes.md b/doc/python/v6-changes.md index 5c111194ff..fe18e67420 100644 --- a/doc/python/v6-changes.md +++ b/doc/python/v6-changes.md @@ -57,9 +57,12 @@ pip install anywidget Plotly.py now takes advantage of recent changes in how Plotly.js handles typed arrays for improved performance. See the [performance page](https://plotly.com/python/performance/) for more details. +> If you are using Plotly.py 6 or later with Dash Design Kit, you may need to upgrade your Dash Design Kit version. See the [Dash Design Kit Compatibility section on the performance page](/python/performance/#dash-design-kit-compatibility) for more details. + + ## Dataframe Support -Plotly Express now uses [Narwhals](https://narwhals-dev.github.io/narwhals/) to natively support pandas, Polars, and PyArrow. With this change, the [performance](https://plotly.com/python/performance/) of using Polars or PyArrow with Plotly Express is significantly improved. +Plotly Express now uses [Narwhals](https://narwhals-dev.github.io/narwhals/) to natively support pandas, Polars, and PyArrow. With this change, the [performance](https://plotly.com/python/performance/) of using Polars or PyArrow with Plotly Express is significantly improved. ## Mapbox Deprecation From e20e8e9bfbafefb55a993766d12b75dfb794c824 Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 7 Feb 2025 10:31:40 -0500 Subject: [PATCH 4/4] update conda install instructions --- README.md | 2 +- doc/python/getting-started.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cb3ce93e1b..59a2ca6465 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ pip install plotly or conda. ``` -conda install -c plotly plotly +conda install -c conda-forge plotly ``` ### Jupyter Widget Support diff --git a/doc/python/getting-started.md b/doc/python/getting-started.md index 3c908e0552..9c185f7a43 100644 --- a/doc/python/getting-started.md +++ b/doc/python/getting-started.md @@ -64,7 +64,7 @@ $ pip install plotly or `conda`: ``` -$ conda install -c plotly plotly +$ conda install -c conda-forge plotly ``` If you want to use Plotly Express, install its required dependencies with: