Stumbled on issue earlier today where Plot() failed in REPL using Linux Manjaro/Arch system, but could plot via a Jupyter notebook.
Saw this issue in a number of places while searching for resolution, so thought would share the simple fix (that works for now, while
qt4 is still avail for Arch).
$ sudo pacman -Su qt4
error I was seeing before installing qt4:
julia> p = plot(1:10, rand(10)) /home/e/.julia/packages/GR/f1Iqi/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory connect: Connection refused GKS: can't connect to GKS socket application Did you start 'gksqt'? GKS: Open failed in routine OPEN_WS
There is this announcement for dropping qt4 support from Arch, so concerned a bit for the future…
Github issue for this:
These all seem related: https://github.com/jheinen/GR.jl/issues/172, https://github.com/jheinen/GR.jl/issues/111 and https://github.com/JuliaPlots/Plots.jl/issues/1649 (saw that error as well).