From bfdfcc36661d13503df079f1a20c00d167d50dcb Mon Sep 17 00:00:00 2001 From: Liam Connors Date: Fri, 31 Jan 2025 10:17:55 -0500 Subject: [PATCH 1/2] 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 2/2] 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