-
-
Notifications
You must be signed in to change notification settings - Fork 348
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
empty plot with plotly in Firefox on Windows #1138
Comments
Chrome works for me, but when I set Firefox as the default it is empty as well. |
Works in Edge and IE. I'd call this Firefox-specific. |
Sorry, my bad. I have no Plotly installed (Pkg.status() doesn't show it) but run |
Plots.jl doesn't use the Plotly.jl package by default. It directly downloads the Plotly Javascript and builds browser pages from that. You can say that it's the one backend that's built into Plots.jl because of that. |
Works great in Firefox on Mac. It appears to be an issue with the particular combination Plots, Plotly, Firefox and Windows 10 😱 |
It also works on Linux and Firefox. |
It does not work on Firefox and Windows 7. |
Can it be an issue with the firefox version? Works on 56 (on Linux) for me. @joa-quim what version are you using? |
Was 55 but is the same with the just updated 56. They are 32 bits versions though, maybe that? |
My Windows is 64-bit running an older version of Firefox, so I would be surprised if it's also 32-bit that's an issue. I think the next thing to check is whether the developer console in Firefox is throwing an error. |
OK, the console shows this.
|
@joa-quim would you mind trying to use Plotly.jl in the same browser? It'd be nice to know if this is an issue with our setup. |
Hmm, got these errors while
|
Same here, Firefox shows empty window with the console outputting "ReferenceError: Plotly is not defined". Chrome works fine Windows 10, Firefox Quantum 57.0b11 (64-bit) P.S.: The install of Pkg.add("Plotly") fails with the same error as for @joa-quim. Otherwise identical versions. |
Same problem here. I fixed it by prepending
Then it works just fine in Firefox, IE and Chrome. If people could try this out on Mac and Linux I could have a make a PR ready to fix this soon. |
@hessammehr if you show me exactly what you changed in the code, I can test it on linux. Alternatively you could just open a PR and we can test and discuss this there. |
@daschw here's how I tested the PR: using Plots
plotly()
p = plot([1, 2, 3])
open("out.html", "w") do f
show(f, MIME("text/html"), p)
end Works fine on Firefox/Chrome/IE/Edge on Windows. |
Just tested this on Linux (Firefox and Chromium) and Mac (Firefox, Chrome, Safari) - seems to work fine there as well. |
If this helps anyone: I had to disable the HTTPS EVERYWHERE extension in Firefox to get the Plotly <script> to be loaded. This fixed it for me. And also, I had to stop using Jupyter Lab and switch the classical Notebook mode in order to get it to work. |
Just trying to reproduce the first example in tutorial (and explicitly setting plotly() backend)
opens an empty page in Firefox (my default browser). Win10 here.
The text was updated successfully, but these errors were encountered: