Skip to content

Bug - global resize handlers are not removed with FigureWidget() #3100

Closed
@asaff1

Description

@asaff1

To reproduce, execute the following code in a cell a few times:
go.FigureWidget()
Then try to resize the window. You will notice the following console errors:
image

However, when doing the same with go.Figure(), the problem does not occur. The console logs shows that plotly does detect a notebook cell get destroyed.
image

I need to use the go.FigureWidget(), because I can update it later in a another notebook cell. I need this functionality since I use my notebook to render a web application using Voila, and I need the plots to be rendered in specific cells.

Is there an option to use go.Figure() and to update it in a another cell?
Or to somehow make FigureWidget() to unbind resize handlers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions