Skip to content

Commit

Permalink
Fix IJuliaExt.display_dict for julia 1.11
Browse files Browse the repository at this point in the history
Use `IOBuffer` without relying on implementation details
  • Loading branch information
artemsolod authored Oct 4, 2024
1 parent 76ffe57 commit 82d61a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/IJuliaExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
end

0 comments on commit 82d61a8

Please sign in to comment.