Skip to content

Commit 0f0ea8d

Browse files
committed
display in Julia VSCode extension
1 parent ca4088e commit 0f0ea8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/PlotlyLight.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ end
114114
#-----------------------------------------------------------------------------# Display
115115
Base.display(::Cobweb.CobwebDisplay, o::Plot) = display(Cobweb.CobwebDisplay(), Cobweb.Page(o))
116116

117+
Base.show(io::IO, ::MIME"juliavscode/html", o::Plot) = show(io, MIME"text/html"(), o)
118+
117119
function Base.show(io::IO, M::MIME"text/html", o::Plot)
118120
class, style = Defaults.class, Defaults.style
119121
parent_class, parent_style = Defaults.parent_class, Defaults.parent_style

0 commit comments

Comments
 (0)