-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Loaded notebooks have no plots #89
Comments
Hi @cstjean Thanks for bringing this up. I'm a little surprised that you're seeing this behavior. One thing that might happen is if you run the It isn't an issue during the same session, as your browser keeps a local copy of it in memory, but if you leave/refresh/or otherwise re-open the page then it will not be able to resurrect that javascript code. Can you try to run the If you are still having issues it would be helpful if you could post the offending notebook to github or put it in a github gist so I can investigate more. |
Thank you for the detailed answer. You were right; if I follow your steps on a fresh notebook, it works upon refresh. Should I close this issue and open it again on Plots.jl? cc. @tbreloff |
If it works with PlotlyJS and not Plots it sounds like an issue that should be handled over there. What do you think @tbreloff ? |
Noted. I'll probably need Spencer's help to solve this even if you open a On Friday, October 21, 2016, Cédric St-Jean [email protected]
|
A possible solution could be to have function Plots._show(io::IO, ::MIME"image/svg+xml", plt::Plot{Plots.PlotlyJSBackend})
if Plots.isijulia()
write(io, PlotlyJS.html_body(PlotlyJS.JupyterPlot(plt.o)))
else
show(io, MIME("text/html"), plt.o)
end
end in |
On Julia 0.5, in IJulia,
This displays a plot. But if I save the notebook and refresh the page (or reload the notebook later), then all the plots are gone. The above code just displays a blank. Plots.jl displays a "Javascript error" in red. Related to #45.
Bokeh uses this code. I haven't tried if it would solve the issue.
The text was updated successfully, but these errors were encountered: