From 06d097e8bf0776848bde1e0e62d530f875d6bcd2 Mon Sep 17 00:00:00 2001 From: Jiayi Wei Date: Mon, 9 Aug 2021 22:03:51 -0500 Subject: [PATCH] Fix interactivity in VSCode plot pane. --- src/Gadfly.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gadfly.jl b/src/Gadfly.jl index 86cf0804..dadc4716 100755 --- a/src/Gadfly.jl +++ b/src/Gadfly.jl @@ -934,6 +934,9 @@ function show(io::IO, m::MIME"text/html", p::Plot) show(io, m, svg) end +# support interactivity in VSCode plot pane. +show(io::IO, ::MIME"juliavscode/html", p::Plot) = show(io, "text/html", p) + function show(io::IO, m::MIME"image/svg+xml", p::Plot) buf = IOBuffer() svg = SVG(buf, Compose.default_graphic_width,