# Correct way to plot in Juno pane

**URL:** https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171
**Category:** New to Julia
**Tags:** plotting
**Created:** [December 3, 2020, 7:29am UTC](https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171 "2020-12-03T07:29:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![skeptic\_moderate](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skeptic_moderate/32/19793_2.png) [@skeptic\_moderate](https://discourse.julialang.org/u/skeptic_moderate)
#### Post date: [December 3, 2020, 7:29am UTC](https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171/1 "2020-12-03T07:29:18Z")

</div>

I can’t get the plot pane to work in Juno/Atom. `gr(); plot(...)` just opens a separate window. I came across a topic which said you have to use `plotlyjs`, so I installed it, but when I run `plotlyjs()` I get the following error:

```
ERROR: InitError: SystemError: opening file "C:\\Users\\sulli\\.julia\\packages\\PlotlyJS\\m2Lzd\\deps\\build.log": No such file or directory
Stacktrace:
 [1] systemerror(::String, ::Int32; extrainfo::Nothing) at .\error.jl:168
 [2] #systemerror#48 at .\error.jl:167 [inlined]
 [3] systemerror at .\error.jl:167 [inlined]
 [4] open(::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing) at .\iostream.jl:284
 [5] open at .\iostream.jl:273 [inlined]
 [6] open(::Base.var"#296#297"{String}, ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at .\io.jl:323
 [7] open at .\io.jl:323 [inlined]
 [8] read at .\io.jl:410 [inlined]
 [9] __init__ () at C:\Users\sulli\.julia\packages\PlotlyJS\m2Lzd\src\PlotlyJS.jl:65
 [10] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:697
 [11] _require_from_serialized(::String) at .\loading.jl:749
 [12] _require(::Base.PkgId) at .\loading.jl:1040
 [13] require(::Base.PkgId) at .\loading.jl:928
 [14] require(::Module, ::Symbol) at .\loading.jl:923
 [15] top-level scope at C:\Users\sulli\.julia\packages\Plots\vsE7b\src\backends.jl:489       
 [16] eval at .\boot.jl:331 [inlined]
 [17] _initialize_backend(::Plots.PlotlyJSBackend) at C:\Users\sulli\.julia\packages\Plots\vsE7b\src\backends.jl:488
 [18] backend at C:\Users\sulli\.julia\packages\Plots\vsE7b\src\backends.jl:174 [inlined]     
 [19] plotlyjs(; kw::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at 
C:\Users\sulli\.julia\packages\Plots\vsE7b\src\backends.jl:31
 [20] plotlyjs() at C:\Users\sulli\.julia\packages\Plots\vsE7b\src\backends.jl:31
 [21] top-level scope at REPL[18]:1
during initialization of module PlotlyJS

```

I came across various topics on Discourse about how the plots pane doesn’t work anymore. I also saw something about this being a WebIO issue. I don’t know if those things are related.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 3, 2020, 8:08am UTC](https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171/2 "2020-12-03T08:08:53Z")

</div>

The plots pane is expected to work - do you have it enabled in the `julia-client` settings?  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/1/1/115e77cf25e0b1ee04962f0a15bf30a0cf394178.png)

Other than that it’s hard to say what’s happening without more info - are you on the latest version of all relevant Julia and Atom packages?

---

<div class="post-metadata">

### Author: ![skeptic\_moderate](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skeptic_moderate/32/19793_2.png) [@skeptic\_moderate](https://discourse.julialang.org/u/skeptic_moderate)
#### Post date: [December 3, 2020, 6:05pm UTC](https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171/3 "2020-12-03T18:05:55Z")

</div>

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

Yes, I have the plots pane enabled.

```
Juno: 0.12.6
Julia: 1.5.3
Atom: 1.53.0
Electron: 6.1.12
Plots 1.9.1
Atom (Julia package): 0.12.27
IJulia: 1.23.0
JLD: 0.10.0
Juno (Julia package): 0.8.4
PlotlyJS: 0.14.0

```

I put all the packages I think are relevant. Also, I’m on Windows 10 if that is relevant.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [December 3, 2020, 7:24pm UTC](https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171/4 "2020-12-03T19:24:54Z")

</div>

By `Juno` I presume you mean `julia-client`? What about `ink` (Atom package)? And what is `Electron`?

Other than that I don’t see any obvious issue - I am running the exact same versions of everything you’ve got, also on Win10, and am seeing this:

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

---

<div class="post-metadata">

### Author: ![skeptic\_moderate](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skeptic_moderate/32/19793_2.png) [@skeptic\_moderate](https://discourse.julialang.org/u/skeptic_moderate)
#### Post date: [December 4, 2020, 4:32am UTC](https://discourse.julialang.org/t/correct-way-to-plot-in-juno-pane/51171/5 "2020-12-04T04:32:10Z")

</div>

I was attempting to plot from the REPL. After seeing your code I thought to try running a file instead. Voila plots window magically starts working. Oddly, the REPL now plots to the pane as well, so first ctrl+enter running a Julia file jiggered some config file somewhere. Thank you for your insights.

BTW I think Juno is the official name for julia-client + Atom editor. See [https://junolab.org/](https://junolab.org/). Electron is the JS browser engine that Atom is built on.
