Skip to content

Commit

Permalink
Add fix for WebIO 0.8.0+. (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
twavv authored and sglyon committed Feb 7, 2019
1 parent 4088519 commit ca5ee5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ end
Base.getindex(p::SyncPlot, key) = p.scope[key] # look up Observables

WebIO.render(p::SyncPlot) = WebIO.render(p.scope)
# WebIO 0.8.0+
if isdefined(WebIO, :render_internal)
WebIO.render_internal(p::SyncPlot) = WebIO.render_internal(p.scope)
end
Base.show(io::IO, mm::MIME"text/html", p::SyncPlot) = show(io, mm, p.scope)
Base.show(io::IO, mm::MIME"application/juno+plotpane", p::SyncPlot) = show(io, mm, p.scope)

Expand Down

0 comments on commit ca5ee5e

Please sign in to comment.