Merge pull request #604 from pabloferz/pz/plotlyjs

Proper "id" synchronization of plotlyjs plots
This commit is contained in:
Tom Breloff 2016-12-24 19:05:44 +01:00 committed by GitHub
commit a88d78a2e9

View File

@ -86,8 +86,8 @@ end
# ----------------------------------------------------------------
function _show(io::IO, ::MIME"image/svg+xml", plt::Plot{PlotlyJSBackend})
if Plots.isijulia()
print(io, PlotlyJS.html_body(plt.o))
if isijulia() && !_use_remote[]
write(io, PlotlyJS.html_body(PlotlyJS.JupyterPlot(plt.o)))
else
show(io, MIME("text/html"), plt.o)
end