Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Support `marginal_x`/`marginal_y="heatmap"` in `density_heatmap`, drawing a single-row/column heatmap strip in the margin colored by the same `z`/`histfunc` aggregate as the main plot and sharing its color scale [[#5706](https://github.com/plotly/plotly.py/issues/5706)], with thanks to @lucasjamar for the contribution!

### Fixed
- Fix `FigureWidget` state synchronization bug where frontend modifications to array properties (like `layout.shapes`) failed to properly update the Python property cache and occasionally surfaced `Undefined` objects [[#5689](https://github.com/plotly/plotly.py/issues/5689)]

## [7.0.0] - 2026-08-25

### Fixed
Expand Down
10 changes: 10 additions & 0 deletions plotly/basedatatypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5458,6 +5458,16 @@ def _dispatch_change_callbacks(self, changed_paths):
-------
None
"""
# Invalidate cache for changed compound array properties so that they are
# reconstructed from the underlying properties dictionary on the next access.
# We only pop from _compound_array_props because compound arrays are immutable
# tuples that must be rebuilt to reflect added or removed elements.
for path in changed_paths:
if len(path) > 0:
prop = path[0]
if prop in self._compound_array_props:
self._compound_array_props.pop(prop, None)

# Loop over registered callbacks
# ------------------------------
for prop_path_tuples, callbacks in self._change_callbacks.items():
Expand Down
Loading