# Juno plot opens Visual Studio Code

**URL:** https://discourse.julialang.org/t/juno-plot-opens-visual-studio-code/20860
**Category:** Juno
**Created:** [February 16, 2019, 2:57pm UTC](https://discourse.julialang.org/t/juno-plot-opens-visual-studio-code/20860 "2019-02-16T14:57:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dunefox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dunefox/32/12149_2.png) [@dunefox](https://discourse.julialang.org/u/dunefox)
#### Post date: [February 16, 2019, 2:57pm UTC](https://discourse.julialang.org/t/juno-plot-opens-visual-studio-code/20860/1 "2019-02-16T14:57:17Z")

</div>

```julia
using Plots
plotly() # Choose a backend
plot(rand(6,6)) # This will plot to the plot pane
gui() # This will open up a separate interactive GUI windows

```

I want to run this code and have the plot displayed in either the plot pane (preferably) or in a separate window, but instead this opens a new Visual Studio Code window. I’m inside Juno and JuliaPro-1.0.2.1.  
How exactly does that happen and how do I change it?

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [February 16, 2019, 4:15pm UTC](https://discourse.julialang.org/t/juno-plot-opens-visual-studio-code/20860/2 "2019-02-16T16:15:52Z")

</div>

The only explanation that I can come up with is that VS Code is registered as the default viewer for some file type on your system, and that the Julia code is trying to show things with some system viewer. What kind of file is being opened in VS Code?

---

<div class="post-metadata">

### Author: ![dunefox](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dunefox/32/12149_2.png) [@dunefox](https://discourse.julialang.org/u/dunefox)
#### Post date: [February 18, 2019, 3:34pm UTC](https://discourse.julialang.org/t/juno-plot-opens-visual-studio-code/20860/3 "2019-02-18T15:34:36Z")

</div>

No file is being opened, as far as I can see. It’s just the welcome screen.
