Skip to content

Plotly offline will not work upon page reload or from another client; will not work with ipywidgets #463

@aggFTW

Description

@aggFTW

Hi,

We found out that the following PR: #379
ends up breaking plotly offline on page refreshes.

Upon first execution:
plotly0

And upon refresh:
plotly1

It seems like what we really should do is have an if statement on javascript that re-registers Plotly.

At the same time, if we want to use plotly with ipywidgets in an output widget, that check on __PLOTLY_OFFLINE_INITIALIZED in that PR would make it impossible to re-register Plotly from init_notebook_mode by any other browser connected to the same kernel or the same browser on a refresh. Again, this check to not re-register should be done on the javascript side, because it is the front end that knows whether Plotly is defined or not, not the server.

Thanks!
Alejandro

cc @msftristew @ellisonbg @tc0312

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