plotly / plotly/plotly.py

Layout callbacks dont fire on responsive FigureWidget

Open
#5,279 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P2
Dominant language
Python
Stars
18.8k
Forks
2.8k
Avg merge
16h 26m
Merged PRs (30d)
21

Description

Hi, im currently working with plotly in python shiny using shinywidgets. Now there seems to be an issue coming from plotly, where the callbacks dont fire for a responsive FigureWidget. Specifically callbacks installed on the widgets width. This worked with plotly v5.24.1. There i could resize the browser window, which would then resize the FigureWidget (because it is responsive) and this would trigger the width callback. This doesnt work anymore in plotly v6.2.0.

Also, every callback would be initially run when the FigureWidget is first rendered in plotly v5.24.1. This also doesnt seem to happen anymore. Is this deliberate?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the responsive FigureWidget behavior described in plotly.py with versions 5.24.1 and 6.2.0, resizing the browser and observing width callbacks and initial callback execution. Trace the FigureWidget responsive and callback entry points to determine whether the change is intentional; done means the behavior is explained and, if unintended, covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.