# VS code plot pane won't stay splitted

**URL:** <https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051>\
**Category:** VS Code\
**Created:** [November 25, 2021, 10:09am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051 "2021-11-25T10:09:07Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmetivie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmetivie/32/6926_2.png) [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Post date:** [November 25, 2021, 10:09am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/1 "2021-11-25T10:09:07Z")

</div>

Recently (past week or so), I noticed a change of behavior in how VS Code Julia plot pane displayed figures.

Before it looked like that every time I plotted a new figure

 ![image](https://global.discourse-cdn.com/julialang/original/3X/5/a/5a1651bd778daaea9086ac86071f1a59a5ab875a.png)

But now when I `Shift+Enter` inline plot, it produces that

 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/3/13b7219274db75624788adf1e43cd6a5d682e972.png)  
Meaning the right panel opens in full screen over the left panel.

If I try from the REPL, it sometimes (not always and that is weird) keep the split format and sometime display the plot pane in all the screen.

Here are my settings, I use VS Code insider.

```julia
VS Code Julia extansion v1.5.6
Julia Version 1.6.3
Commit ae8452a9e0 (2021-09-23 17:34 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = code-insiders

```

It might be related to [that issue](https://discourse.julialang.org/t/open-vscode-plot-pane-in-2nd-editor-group/40403) but I did not get how to change the setting to always display the plot in split window without opening the plot in full screen.

---

<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:** [November 25, 2021, 10:10am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/2 "2021-11-25T10:10:26Z")

</div>

Did you try dragging the plot pane into a new editor group manually? IIRC we’ll remember the last column the plot pane was opened in and always try to use that.

---

<div class="post-metadata">

**Author:** ![dmetivie](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dmetivie/32/6926_2.png) [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Post date:** [November 25, 2021, 10:22am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/3 "2021-11-25T10:22:38Z")

</div>

Yes I tried that, but at each new plot, it re-opens again as full screen, suppressing the split.  
Here is what happen (I just `using Plot` and do a first plot to avoid compilation time).  
 ![2021-11-25 16-45-55](https://global.discourse-cdn.com/julialang/original/3X/3/9/39ddbd778169fa73dbe022b0665cbc341c12e8f1.gif)

Sorry if we don’t see much, I am not expert in screen recording.

---

<div class="post-metadata">

**Author:** ![tpgillam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tpgillam/32/23052_2.png) [@tpgillam](https://discourse.julialang.org/u/tpgillam)\
**Post date:** [December 9, 2021, 12:04pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/4 "2021-12-09T12:04:53Z")

</div>

I noticed this too as of today, having just upgraded to VSCode 1.63.0 yesterday - potentially related?

---

<div class="post-metadata">

**Author:** ![tpgillam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tpgillam/32/23052_2.png) [@tpgillam](https://discourse.julialang.org/u/tpgillam)\
**Post date:** [December 9, 2021, 12:10pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/5 "2021-12-09T12:10:53Z")

</div>

I’ve opened an issue here: [https://github.com/julia-vscode/julia-vscode/issues/2612](https://github.com/julia-vscode/julia-vscode/issues/2612)

---

<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:** [December 9, 2021, 12:10pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/6 "2021-12-09T12:10:57Z")

</div>

Will be fixed by [https://github.com/julia-vscode/julia-vscode/pull/2611](https://github.com/julia-vscode/julia-vscode/pull/2611).

---

<div class="post-metadata">

**Author:** ![tpgillam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tpgillam/32/23052_2.png) [@tpgillam](https://discourse.julialang.org/u/tpgillam)\
**Post date:** [December 9, 2021, 12:12pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/7 "2021-12-09T12:12:00Z")

</div>

> [@pfitzseb](#):
>
> Will be fixed by [Fix plot pane column and focus issues by pfitzseb · Pull Request #2611 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/pull/2611).

Ah nice! I had a look through the issues but couldn’t find an existing one - evidently I didn’t look hard enough 🙂

---

<div class="post-metadata">

**Author:** ![SamBrand](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@SamBrand](https://discourse.julialang.org/u/SamBrand)\
**Post date:** [December 22, 2021, 11:57am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/8 "2021-12-22T11:57:33Z")

</div>

Hi there.

This is not fixed for my settings I’m afraid.

Julia VScode extension: v1.5.8  
VSCode Version: 1.63.2  
Electron: 13.5.2  
Chromium: 91.0.4472.164  
Node.js: 14.16.0  
OS: Darwin x64 19.6.0’

---

<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 22, 2021, 12:41pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/9 "2021-12-22T12:41:30Z")

</div>

Here is an issue following the problem: [https://github.com/julia-vscode/julia-vscode/issues/2618](https://github.com/julia-vscode/julia-vscode/issues/2618)

For the moment I had to downgrade VSCode 1.62

---

<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 23, 2021, 12:44am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/10 "2021-12-23T00:44:12Z")

</div>

Oh I notice it too, but I actually prefer this behaviour because I’m on a laptop with little screen real estate 🤭

P.S. my plots are much wider than yours though, which is why I like the behaviour. Maybe a different default size? I wouldn’t like it so much if my plots were as small as yours!

---

<div class="post-metadata">

**Author:** ![aachener](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aachener/32/18112_2.png) [@aachener](https://discourse.julialang.org/u/aachener)\
**Post date:** [December 29, 2021, 2:17am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/11 "2021-12-29T02:17:02Z")

</div>

same problem here. looked through the web and no solutions.

waiting for bug fixes.

---

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [December 29, 2021, 12:53pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/12 "2021-12-29T12:53:37Z")

</div>

> [@Studio closes pane with each plot command](https://discourse.julialang.org/t/studio-closes-pane-with-each-plot-command/72969/3):
>
> Had the same behavior. My solution: In the menu of the code pane(“more actions” - the 3 dots in the upper, right corner) , I selected “lock group” and the plot-pane was “normal” again on my PC.

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 9, 2022, 7:17pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/13 "2022-01-09T19:17:40Z")

</div>

This didn’t work for me, unfortunately. Plot pane keeps jumping back over to the left pane each time I run my function that contains `lines()`, using `CairoMakie.jl`.

---

<div class="post-metadata">

**Author:** ![Seif\_Shebl](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Post date:** [January 9, 2022, 10:51pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/14 "2022-01-09T22:51:11Z")

</div>

I first deleted all plots so that the plot pane shows “Julia Plots (0/0)” and dragged to the right manually, then I chose “Lock Group” as @zdenek_hurak said and it worked!

---

<div class="post-metadata">

**Author:** ![TI36XPro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ti36xpro/32/33658_2.png) [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Post date:** [January 10, 2022, 1:17am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/15 "2022-01-10T01:17:59Z")

</div>

I tried it, unfortunately still pops over to the left each time I run the function in the REPL that creates it. I also restarted VS Code, opened the plot plot before plotting anything and locked it. Still moves over to the left.

---

<div class="post-metadata">

**Author:** ![gszep](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gszep/32/14836_2.png) [@gszep](https://discourse.julialang.org/u/gszep)\
**Post date:** [January 10, 2022, 10:04am UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/16 "2022-01-10T10:04:18Z")

</div>

I’m experiencing the same isse with CarioMakie.jl

---

<div class="post-metadata">

**Author:** ![Seif\_Shebl](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@Seif\_Shebl](https://discourse.julialang.org/u/Seif_Shebl)\
**Post date:** [January 10, 2022, 8:40pm UTC](https://discourse.julialang.org/t/vs-code-plot-pane-wont-stay-splitted/72051/17 "2022-01-10T20:40:30Z")

</div>

Unfortunately, the issue appears again randomly. At the moment, either we have to downgrade to Version 1.62 as @lmiq suggested or bear with the current behavior and wait for the next fix.
