Skip to content

Commit

Permalink
fix accidental Base.show type piracy (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
marius311 authored Dec 11, 2024
1 parent accb03d commit bb36284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PlotlyLight.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function Base.show(io::IO, ::MIME"text/html", o::Plot)
show(io, MIME("text/html"), html_iframe(o)) :
show(io, MIME("text/html"), html_div(o))
end
Base.show(io::IO, ::MIME"juliavscode/html", o) = show(io, MIME("text/html"), o)
Base.show(io::IO, ::MIME"juliavscode/html", o::Plot) = show(io, MIME("text/html"), o)

Base.display(::REPLDisplay, o::Plot) = Cobweb.preview(html_page(o), reuse=settings.reuse_preview)

Expand Down

0 comments on commit bb36284

Please sign in to comment.