webio integration

This commit is contained in:
Pietro Vertechi 2018-06-27 15:24:50 +01:00
parent 495753b517
commit 7085d98f41

View File

@ -120,6 +120,12 @@ function _display(plt::Plot{PlotlyJSBackend})
end
end
@require WebIO begin
function WebIO.render(plt::Plot{PlotlyJSBackend})
_update_plot_object(plt)
WebIO.render(plt.o)
end
end
function closeall(::PlotlyJSBackend)
if !isplotnull() && isa(current().o, PlotlyJS.SyncPlot)