-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Plotly offline will not work upon page reload or from another client; will not work with ipywidgets #463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Cell 1:
Cell 2:
Cell 3:
|
We suspect this is related: #458 |
@yankev well, removing the check + adding the javascript |
Ok, thanks! 😄 |
@tc0312 and I were looking at this and we think the python check should be removed and the javascript should look something like this (we haven't tested it):
We hope it helps! |
Yep! This PR will solve it - just cleaning up a few things then it will be merged in. |
Great stuff, thanks @mdtusz. |
Hi,
We found out that the following PR: #379
ends up breaking plotly offline on page refreshes.
Upon first execution:

And upon refresh:

It seems like what we really should do is have an
if
statement on javascript that re-registersPlotly
.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-registerPlotly
frominit_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 whetherPlotly
is defined or not, not the server.Thanks!
Alejandro
cc @msftristew @ellisonbg @tc0312
The text was updated successfully, but these errors were encountered: