# Plotting in VSCode on two or more plot windows

**URL:** https://discourse.julialang.org/t/plotting-in-vscode-on-two-or-more-plot-windows/93746
**Category:** General Usage
**Tags:** vscode
**Created:** [January 29, 2023, 11:26pm UTC](https://discourse.julialang.org/t/plotting-in-vscode-on-two-or-more-plot-windows/93746 "2023-01-29T23:26:58Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bionicinnovations](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bionicinnovations/32/6065_2.png) [@bionicinnovations](https://discourse.julialang.org/u/bionicinnovations)
#### Post date: [January 29, 2023, 11:26pm UTC](https://discourse.julialang.org/t/plotting-in-vscode-on-two-or-more-plot-windows/93746/1 "2023-01-29T23:26:58Z")

</div>

I am analysing large data sets, with each analysis generating 10s of plots (Plots.jl with the plotly() backend).

I want to compare these plots but generated under a separate condition. On VS Code it puts the plots in a separate tab or pane, and I can move forward and backward through one series of plots using the arrows. But I cannot seem to separate out the plots into different panes, e.g. to put two plots side by side to compare them.

Any ideas on how to get two separate plot tabs up on VS Code? Or any other suggestions on how I could do this?

---

<div class="post-metadata">

### Author: ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)
#### Post date: [January 30, 2023, 1:02am UTC](https://discourse.julialang.org/t/plotting-in-vscode-on-two-or-more-plot-windows/93746/2 "2023-01-30T01:02:00Z")

</div>

As far as I can tell, that is not possible. I think it would be a good feature request.

---

<div class="post-metadata">

### Author: ![bionicinnovations](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bionicinnovations/32/6065_2.png) [@bionicinnovations](https://discourse.julialang.org/u/bionicinnovations)
#### Post date: [January 30, 2023, 1:52am UTC](https://discourse.julialang.org/t/plotting-in-vscode-on-two-or-more-plot-windows/93746/3 "2023-01-30T01:52:01Z")

</div>

My workaround is this function, which permits me to plot it in a browser. It’s the next best thing for now, but keen to hear if someone has another solution:

```julia
    """
    Permits plotting in browser 
    """
    function browser(p)
        tmp_filename = "plot.html"
        Plots.savefig(p, tmp_filename)
        if Sys.islinux()
            firefox_dir = "/usr/lib/firefox/firefox.sh"
            run(`$firefox_dir $tmp_filename`)
        elseif Sys.iswindows()
            firefox_dir = raw"C:/Program Files/Mozilla Firefox/firefox"
            run(`$firefox_dir $tmp_filename`)
        elseif Sys.isapple()
            firefox_dir = "/Applications/Firefox.app"
            run(`$firefox_dir $tmp_filename`)
        end
    end 

```

---

<div class="post-metadata">

### Author: ![albheim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/albheim/32/34660_2.png) [@albheim](https://discourse.julialang.org/u/albheim)
#### Post date: [January 30, 2023, 9:47am UTC](https://discourse.julialang.org/t/plotting-in-vscode-on-two-or-more-plot-windows/93746/4 "2023-01-30T09:47:11Z")

</div>

Maybe not an optimal solution either, but you could tell VSCode to not use the built in plotting windows and instead fall back to the native ones using the command `Julia: Disable Plot Pane`. For plotly I think that would be browser, so similar end effect as your script.
