Merge pull request #591 from pabloferz/pz/plotlyjs

Fix embeding of PlotlyJS plots in Jupyter
This commit is contained in:
Tom Breloff 2016-11-28 12:57:35 -05:00 committed by GitHub
commit 83beca098b

View File

@ -86,7 +86,11 @@ end
# ----------------------------------------------------------------
function _show(io::IO, ::MIME"image/svg+xml", plt::Plot{PlotlyJSBackend})
show(io, MIME("text/html"), plt.o)
if Plots.isijulia()
print(io, PlotlyJS.html_body(plt.o))
else
show(io, MIME("text/html"), plt.o)
end
end
function plotlyjs_save_hack(io::IO, plt::Plot{PlotlyJSBackend}, ext::String)