diff --git a/ext/IJuliaExt.jl b/ext/IJuliaExt.jl index 9bf1974..3ecbc0b 100644 --- a/ext/IJuliaExt.jl +++ b/ext/IJuliaExt.jl @@ -13,7 +13,7 @@ function IJulia.display_dict(p::PlotlyJS.SyncPlot) "text/html" => let buf = IOBuffer() show(buf, MIME("text/html"), p) - String(resize!(buf.data, buf.size)) + String(resize!(collect(buf.data), buf.size)) end ) end