Skip to content

FigureWidget shapes property is empty, even when it's populated in _props #5309

Open

Description

@scott-8

When using FigureWidget, the shapes property does not update properly.

Here is an example:

fig = go.Figure()
fig.update_layout(
    modebar={"add": ["drawline", "drawclosedpath", "eraseshape"]},
)
widget = go.FigureWidget(fig)
widget.show()

When I draw a shape, widget.layout["shapes"] remains empty. On the other hand, widget.layout._props["shapes"] is populated correctly.

This is using Plotly 6.2.0.

Activity

  1. added
    bugsomething broken
    P2considered for next cycle
    on Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions