# VSCode plots wont show anymore anywhere

**URL:** <https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470>\
**Category:** VS Code\
**Tags:** question\
**Created:** [December 22, 2021, 6:48am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470 "2021-12-22T06:48:19Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wingmore](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wingmore/32/32138_2.png) [@Wingmore](https://discourse.julialang.org/u/Wingmore)\
**Post date:** [December 22, 2021, 6:48am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/1 "2021-12-22T06:48:19Z")

</div>

I have had no issues with VSCode plots until all of a sudden, they stopped showing up. I dont even know what I changed because no matter what I do, the plots dont show up whatsoever.

I’m using PlotlyJS, and a simple line in the REPL would usually show up in a plot pane inside VSCode. However now when I try make a simple plot like below, nothing shows except for some text inside the Plot Navigator. The pane seems to have disappeared and I cant find how to get it back.

```julia
using PlotlyJS
p = make_subplots()
p

```

![image](https://global.discourse-cdn.com/julialang/original/3X/0/7/077701db53e093cf04b32a7131ea59096a3eeff0.png)

And yes, I have ticked “display plots inside VSCode” in the settings. I’ve also restarted VS Code several times.

Any ideas?

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [December 22, 2021, 7:15am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/2 "2021-12-22T07:15:59Z")

</div>

Have you restarted vscode? Have you updated packages? Was there a downgrade? Are you on Julia 7?

As a quick way out, you can install [vscodium](https://vscodium.com/) and see if you get lucky (it’s Visual Studio Code minus the data sharing features that Microsoft leverages from the product).

---

<div class="post-metadata">

**Author:** ![Wingmore](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wingmore/32/32138_2.png) [@Wingmore](https://discourse.julialang.org/u/Wingmore)\
**Post date:** [December 23, 2021, 12:10am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/3 "2021-12-23T00:10:58Z")

</div>

I’ve definitely restarted and updated julia and all the packages to the latest version. It had been working fine for ages until very recently too so really would like to get to the bottom of this :\

Thanks for the vscodium link, but unfortunately does not work… like VSCode, the only response is it shows under plot Navigation, so I know something is happening, but still no plot nor pane…

---

<div class="post-metadata">

**Author:** ![Wingmore](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wingmore/32/32138_2.png) [@Wingmore](https://discourse.julialang.org/u/Wingmore)\
**Post date:** [December 23, 2021, 12:12am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/4 "2021-12-23T00:12:42Z")

</div>

I’ve also noticed that under the Julia tab in the workspace region, there’s nothing under p \> “window”.  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/d/1ddde7930c06b4592f68903ce53d0dca7eb71ca7.png)

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [December 23, 2021, 12:25am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/5 "2021-12-23T00:25:02Z")

</div>

Maybe related: [VS code plot pane won't stay splitted - #9 by lmiq](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/9)

(I had to downgrade VSCode)

---

<div class="post-metadata">

**Author:** ![gtraeger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gtraeger/32/31043_2.png) [@gtraeger](https://discourse.julialang.org/u/gtraeger)\
**Post date:** [December 23, 2021, 12:26am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/6 "2021-12-23T00:26:07Z")

</div>

I have the same problem with VegaLite. However, I can plot using Plots.

---

<div class="post-metadata">

**Author:** ![Wingmore](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wingmore/32/32138_2.png) [@Wingmore](https://discourse.julialang.org/u/Wingmore)\
**Post date:** [December 23, 2021, 4:32am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/7 "2021-12-23T04:32:41Z")

</div>

It’s definitely annoying the hell out of me, I’ve even tried reinstalling VSCode and deleting the cache inside %Appdata%\Code…

Since a re-install still didnt seem to work, I’m at my wit’s end.  
The only good news is I found I could still have plots show externally if I disable the “Use Plot Pane” setting, but it simply quite isnt the same…

![image](https://global.discourse-cdn.com/julialang/original/3X/4/8/4824da6fd14cbf6b3cb036351427d78d2e98784d.png)

---

<div class="post-metadata">

**Author:** ![gtraeger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gtraeger/32/31043_2.png) [@gtraeger](https://discourse.julialang.org/u/gtraeger)\
**Post date:** [December 23, 2021, 6:33pm UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/8 "2021-12-23T18:33:50Z")

</div>

I reinstalled VSCode to version 1.56.2. VegaLite seems to work fine now.

---

<div class="post-metadata">

**Author:** ![pablosanjose](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pablosanjose/32/7006_2.png) [@pablosanjose](https://discourse.julialang.org/u/pablosanjose)\
**Post date:** [December 27, 2021, 11:08am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/9 "2021-12-27T11:08:10Z")

</div>

Same experience here. I was also forced to downgrade, which is unfortunate, since that also downgrades the Julia extension, and some nice recent features are lost.

---

<div class="post-metadata">

**Author:** ![Alexx](https://avatars.discourse-cdn.com/v4/letter/a/ee59a6/32.png) [@Alexx](https://discourse.julialang.org/u/Alexx)\
**Post date:** [December 29, 2021, 9:40am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/10 "2021-12-29T09:40:36Z")

</div>

I have had the same problem after the last VSCode update. In my case I could find a workaround. First, I have enabled Editor setting: Workbench \> Editor: Reveal if Open → Enabled. See also [https://stackoverflow.com/questions/70293097/vscode-open-the-julia-plots-editor-in-a-fixed-location/70299224](https://stackoverflow.com/questions/70293097/vscode-open-the-julia-plots-editor-in-a-fixed-location/70299224)

Then each coding session I start with three lines (can be done sequentially in REPL):  
using Plots  
gr()  
plot(1,1)

After that my code works and the plots appear in the plot pane on the right like before. Though, the beginning of my code is:  
using Plots  
plotly()

It also works for plotlyjs().

Note, if your plot pane is gone completely, then “Split Editor Right” and drag-and-drop there your first graph made with gr() backend.

---

<div class="post-metadata">

**Author:** ![Mastomaki](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Post date:** [February 10, 2022, 4:48pm UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/11 "2022-02-10T16:48:04Z")

</div>

I have the same problem. I did not update VSCode.

```
gr()
plot(1,1)

```

works but only that. My code still does not plot anything.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [February 10, 2022, 5:04pm UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/12 "2022-02-10T17:04:32Z")

</div>

You should consider updating VS Code and the Julia extension to the latest version.

---

<div class="post-metadata">

**Author:** ![Mastomaki](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Mastomaki](https://discourse.julialang.org/u/Mastomaki)\
**Post date:** [February 14, 2022, 9:57am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/13 "2022-02-14T09:57:29Z")

</div>

Now it works again. I updated, I am not sure if that was the reason.

---

<div class="post-metadata">

**Author:** ![Richard\_Wright](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Richard\_Wright](https://discourse.julialang.org/u/Richard_Wright)\
**Post date:** [September 17, 2022, 4:44am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/14 "2022-09-17T04:44:13Z")

</div>

I am new to Julia and am also facing this problem. The plots show fine when running via terminal (REPL) but don’t work via VS Code.

Version: Julia 1.8.1  
VS Code: 1.71.2

I have tried enabling and disabling _Julia: Use plot plane_ setting in VS code. No impact.

---

<div class="post-metadata">

**Author:** ![Richard\_Wright](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Richard\_Wright](https://discourse.julialang.org/u/Richard_Wright)\
**Post date:** [September 19, 2022, 3:43am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/15 "2022-09-19T03:43:46Z")

</div>

I even tried `Julia: Execute active File in REPL` but the plot doesn’t show.

However if I copy-paste the code in REPL the plot shows.

Am I missing some setting in VS code?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [September 19, 2022, 10:22am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/16 "2022-09-19T10:22:25Z")

</div>

You need to actively `display` your plots when running files.

---

<div class="post-metadata">

**Author:** ![Richard\_Wright](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Richard\_Wright](https://discourse.julialang.org/u/Richard_Wright)\
**Post date:** [September 28, 2022, 3:33am UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/17 "2022-09-28T03:33:43Z")

</div>

@pfitzseb Thank you.

Adding `display(p)` solved the issue.

---

<div class="post-metadata">

**Author:** ![cosmonist](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cosmonist/32/45412_2.png) [@cosmonist](https://discourse.julialang.org/u/cosmonist)\
**Post date:** [May 11, 2023, 3:48pm UTC](https://discourse.julialang.org/t/vscode-plots-wont-show-anymore-anywhere/73470/18 "2023-05-11T15:48:10Z")

</div>

I am also having this issue using notebooks in vscode.

I tried all tricks mentioned here, and nothing makes the plots appear inline nor in a separate panel.
