# Interactive Gadfly plots in vscode plot pane

**URL:** https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020
**Category:** VS Code
**Tags:** plotting
**Created:** [April 11, 2021, 5:50am UTC](https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020 "2021-04-11T05:50:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)
#### Post date: [April 11, 2021, 5:50am UTC](https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020/1 "2021-04-11T05:50:28Z")

</div>

I am testing the beautiful plotting package Gadfly for my workflow, and I am missing [interactivity](http://gadflyjl.org/stable/tutorial/#Interactivity) in the VS Code plot pane.

Is there way how to get it?

---

<div class="post-metadata">

### Author: ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)
#### Post date: [April 11, 2021, 6:56am UTC](https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020/2 "2021-04-11T06:56:26Z")

</div>

That should be fixed by [Gadfly.jl#1373](https://github.com/GiovineItalia/Gadfly.jl/pull/1373) (unless there is some new problem occurring). Are you using Gadfly v1.3+?

---

<div class="post-metadata">

### Author: ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)
#### Post date: [April 11, 2021, 7:15am UTC](https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020/3 "2021-04-11T07:15:12Z")

</div>

I am using Gadfly v1.3.2 with julia 1.6

example:

```julia
using Gadfly

plot(z=(x,y) -> x*exp(-(x-round(Int, x))^2-y^2), xmin=[-10], xmax=[10], ymin=[-2], ymax=[2], Geom.contour)

```

---

<div class="post-metadata">

### Author: ![Diego\_Javier\_Zea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/diego_javier_zea/32/1858_2.png) [@Diego\_Javier\_Zea](https://discourse.julialang.org/u/Diego_Javier_Zea)
#### Post date: [July 11, 2021, 4:19pm UTC](https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020/4 "2021-07-11T16:19:19Z")

</div>

I also see a static Gadfly plot on Gadfly 1.3.3 and Julia 1.6.0.

---

<div class="post-metadata">

### Author: ![MrVPlusOne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrvplusone/32/20400_2.png) [@MrVPlusOne](https://discourse.julialang.org/u/MrVPlusOne)
#### Post date: [August 9, 2021, 9:16pm UTC](https://discourse.julialang.org/t/interactive-gadfly-plots-in-vscode-plot-pane/59020/5 "2021-08-09T21:16:06Z")

</div>

Hi, try running this

```julia
function Base.show(io::IO, m::MIME"juliavscode/html", p::Gadfly.Plot)
    show(io, "text/html", p)
end

```

It fixes this problem for me! It looks like it’s caused by VSCode dropping support for displaying MIME"text/html". I will try to open a pull request to fix this.
