Skip to content

Commit

Permalink
Update to latest WebIO.
Browse files Browse the repository at this point in the history
  • Loading branch information
twavv committed Jun 28, 2019
1 parent 8ff4060 commit 88f20e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Compat = "≥ 0.69.0"
JSON = "≥ 0.7.0"
PlotlyBase = "≥ 0.2.2"
Reexport = "≥ 0.2.0"
WebIO = "≥ 0.8.0"
WebIO = "≥ 0.8.6"
julia = "≥ 0.7.0"

[extras]
Expand Down
4 changes: 3 additions & 1 deletion src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ end

Base.getindex(p::SyncPlot, key) = p.scope[key] # look up Observables

WebIO.render(p::SyncPlot) = WebIO.render(p.scope)
@WebIO.register_renderable(SyncPlot) do plot
return WebIO.render(plot.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 88f20e7

Please sign in to comment.