Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Plotting bug in VS Code plot pane

$
0
0

I am running on a server without sudo access. When I plot in VS Code (using ctrl-enter), I get the following error:

julia>     p = plot(rand(100))
/home/affans/.julia/packages/GR/Atztx/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application

GKS: Open failed in routine OPEN_WS
GKS: GKS not in proper state. GKS must be either in the state WSOP or WSAC in routine ACTIVATE_WS

but it dosn’t prevent the plot. The actual plot shows up in the plot window! It just takes a second or two.


but as you can see, the y axis labels are cut off and the scaling looks weird. And this happens everytime I run the command with ctrl-enter.

Now I found that if I run the code with alt-enter or shift enter (by highlighting the command), the error goes away, plotting is lightning fast, and there is not cutoff of the axis labels.

julia>     p = plot(rand(100))

julia> 

what makes alt-enter different than ctrl-enter? This is somewhat difficult to explain and I can’t figure out what exactly triggers it. Willing to do a screen share to debug this.

EDIT: So somethings it works… sometimes it dosn’t.

julia> p = plot(rand(100))
julia>     p = plot(rand(100))

julia>     p = plot(rand(100))
/home/affans/.julia/packages/GR/Atztx/src/../deps/gr/bin/gksqt: error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory
connect: Connection refused
GKS: can't connect to GKS socket application

That was me repeatedly running the code in the vscode REPL.

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images