diff --git a/ext/IJuliaExt.jl b/ext/IJuliaExt.jl index 3ac62b5..3c26b75 100644 --- a/ext/IJuliaExt.jl +++ b/ext/IJuliaExt.jl @@ -10,9 +10,9 @@ function IJulia.display_dict(p::Plot) "text/html" => let buf = IOBuffer() show(buf, MIME("text/html"), p, include_plotlyjs="require") - String(resize!(buf.data, buf.size)) + String(take!(buf)) end ) end -end \ No newline at end of file +end