Skip to content

Commit

Permalink
BUG: use WebIO scope for show(::IO, ::MIME'text/html', ::SyncPlot)
Browse files Browse the repository at this point in the history
  • Loading branch information
sglyon committed Aug 31, 2018
1 parent 7b3b855 commit 2a1c128
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,16 @@ 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...)
show(io, m, p.plot, args...)
end
end

Base.show(io::IO, mm::MIME"text/html", p::SyncPlot) = show(io, mm, p.scope)

function SyncPlot(
p::Plot;
events::AbstractDict=Dict(),
Expand Down

0 comments on commit 2a1c128

Please sign in to comment.