diff --git a/src/display.jl b/src/display.jl index d77f9256..ae29f227 100644 --- a/src/display.jl +++ b/src/display.jl @@ -51,7 +51,7 @@ Base.getindex(p::SyncPlot, key) = p.scope[key] # look up Observables WebIO.render(p::SyncPlot) = WebIO.render(p.scope) for mime in [ - "text/html", "text/plain", "application/juno+plotpane", + "text/plain", "application/juno+plotpane", "application/vnd.plotly.v1+json" ] function Base.show(io::IO, m::MIME{Symbol(mime)}, p::SyncPlot, args...) @@ -59,6 +59,8 @@ for mime in [ end end +Base.show(io::IO, mm::MIME"text/html", p::SyncPlot) = show(io, mm, p.scope) + function SyncPlot( p::Plot; events::AbstractDict=Dict(),