No output in Atom plot pane or gui in both julia 0.7 and 1.0


#1

Hi, with both julia 0.7 and 1.0 I can make graphs from the REPL but whenever I try to do it from Atom, there’s no output in the Plot pane nor I can open the gui windows, neither with GR or PyPlot.

However, the graphs are generated and can be saved into a file but can’t be displayed in the Plot Pane, when I try to do:

display(plot(1:10,1:10,m=:o,leg=false))

I get the output:

BoundsError: attempt to access 0-element Array{AbstractDisplay,1} at index [0]

This is the information of the installed packages

(v1.0) pkg> st
    Status `~/.julia/environments/v1.0/Project.toml`
  [c52e3926] Atom v0.7.10
  [31c24e10] Distributions v0.16.4
  [28b8d3ca] GR v0.36.0
  [e5e0dc1b] Juno v0.5.3
  [b964fa9f] LaTeXStrings v1.0.3
  [ae8d54c2] Luxor v1.1.3
  [ee78f7c6] Makie v0.9.0
  [91a5bcdd] Plots v0.21.0
  [f27b6e38] Polynomials v0.5.1
  [438e738f] PyCall v1.18.5
  [d330b81b] PyPlot v2.6.3
  [94ee1d12] Quaternions v0.3.1
(v0.7) pkg> st
    Status `~/.julia/environments/v0.7/Project.toml`
  [c52e3926] Atom v0.7.10
  [31c24e10] Distributions v0.16.4
  [28b8d3ca] GR v0.36.0
  [a2cc645c] GraphPlot v0.3.1
  [d9be37ee] Homebrew v0.7.0
  [e5e0dc1b] Juno v0.5.3
  [b964fa9f] LaTeXStrings v1.0.3
  [093fc24a] LightGraphs v1.2.0
  [ae8d54c2] Luxor v1.1.3
  [ee78f7c6] Makie v0.9.0
  [91a5bcdd] Plots v0.19.3
  [f27b6e38] Polynomials v0.5.1
  [438e738f] PyCall v1.18.5
  [d330b81b] PyPlot v2.6.3
  [94ee1d12] Quaternions v0.3.1

I hope someone can help, thanks in advance


#2

Does

using GR
plot(rand(10))

work in your Atom installation?


#3

Hi, thanks for your response.
Yes, I’ve just tried that and it shows the output in the Plot pane, however the problem persists if I do the same with PyPlot


#4

I have the same problem. I temporarily solved it by uncheck “Enable plot pane” in julia-client package.


#5

If you eval Base.Multimedia.displays in an editor, do you get the following or something different?


#6

When I evaluate Base.Multimedia.displays I get the output:
image
So REPL.REPLDisplay{REPL.LineEditREPL} and Plots.PlotsDisplay() are missing


#7

That’s not working for me either, when I uncheck “Enable plot pane” I just get the output Plot{Plots.GRBackend() n=1} at the console but no image


#8

Aha! The “problem” is that you’re using the “Legacy Console” option in the julia-client settings. Please switch to the REPL based console and try again.

This actually is a problem in Plots.jl, but switching the console style will work around it. Nvm. Do let me know if that helped though.


#9

Yep, that did the trick,now I have image output in the plots pane with both the GR and PyPlot backends, however with the GR backend I have the “tiny plot problem” which, as https://github.com/JuliaPlots/Plots.jl/issues/1738#issuecomment-425873484 says I guess is not going to be solved on 0.7.
Thanks for your help, I would’ve never thought that was the “problem”


#10

Hmm interesting, This sounds a lot like the issue I had and we discussed yesterday on slack. My console has always been REPL based though