From 88f20e79b2e1b8998f099cfd513f3ff91ca9770d Mon Sep 17 00:00:00 2001 From: Travis Garvin DePrato Date: Thu, 27 Jun 2019 15:42:57 -0700 Subject: [PATCH] Update to latest WebIO. --- Project.toml | 2 +- src/display.jl | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index fcd1d9cf..1d68e39f 100644 --- a/Project.toml +++ b/Project.toml @@ -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] diff --git a/src/display.jl b/src/display.jl index 80e03e5a..4daa07f6 100644 --- a/src/display.jl +++ b/src/display.jl @@ -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)