From 99ac967e9c1efb09d3d3ef13abea49c9320b29ef Mon Sep 17 00:00:00 2001 From: James Foster Date: Wed, 6 Nov 2024 01:16:33 +1100 Subject: [PATCH] Fix for using IJulia with Julia 1.11.1 and the new Memory array types. --- ext/IJuliaExt.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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