# Why plots do not display in the VSCode Julia Plots pane when I run my program?

**URL:** https://discourse.julialang.org/t/why-plots-do-not-display-in-the-vscode-julia-plots-pane-when-i-run-my-program/69339
**Category:** New to Julia
**Tags:** question, vscode, plots
**Created:** [October 7, 2021, 3:36am UTC](https://discourse.julialang.org/t/why-plots-do-not-display-in-the-vscode-julia-plots-pane-when-i-run-my-program/69339 "2021-10-07T03:36:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Soldalma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soldalma/32/29388_2.png) [@Soldalma](https://discourse.julialang.org/u/Soldalma)
#### Post date: [October 7, 2021, 3:36am UTC](https://discourse.julialang.org/t/why-plots-do-not-display-in-the-vscode-julia-plots-pane-when-i-run-my-program/69339/1 "2021-10-07T03:36:13Z")

</div>

Today I tried plotting for the first time with Julia. I installed the Plots package and was able to generate some plots. Things are not going as smoothly as I expected. When I plot from the REPL the plot shows in the VSCode Julia plot pane but when I start Julia by typing Ctrl+F5 the plot pops up in a windows titled GKS Qt Term and disappears when the program stops executing. The code is identical in both cases:

```julia
z = [x^2 for x in 1:0.1:10]
p = Plots.plot(z)
Plots.display(p)

```

Is there a way to plot to the Julia Plots pane when running a program using Ctrl+F5?

---

<div class="post-metadata">

### Author: ![rafael.guerra](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rafael.guerra/32/216610_2.png) [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)
#### Post date: [October 7, 2021, 5:31am UTC](https://discourse.julialang.org/t/why-plots-do-not-display-in-the-vscode-julia-plots-pane-when-i-run-my-program/69339/2 "2021-10-07T05:31:47Z")

</div>

Linking [related thread.](https://discourse.julialang.org/t/makie-only-working-properly-in-repl/68130/2)

---

<div class="post-metadata">

### Author: ![phygavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/phygavin/32/43846_2.png) [@phygavin](https://discourse.julialang.org/u/phygavin)
#### Post date: [November 9, 2022, 8:11am UTC](https://discourse.julialang.org/t/why-plots-do-not-display-in-the-vscode-julia-plots-pane-when-i-run-my-program/69339/3 "2022-11-09T08:11:27Z")

</div>

The link you gave is useful, this has been bothering me for a long time, the picture will be displayed in the **GKS Qt Term** or julia window, and other kinds …
