From 82d61a822047edb043571aa38269acea2605fa66 Mon Sep 17 00:00:00 2001 From: Artem Solod Date: Fri, 4 Oct 2024 18:16:18 +0100 Subject: [PATCH] Fix `IJuliaExt.display_dict` for julia 1.11 Use `IOBuffer` without relying on implementation details --- ext/IJuliaExt.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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