I am running Julia over ssh in VSCode. What plotting options are there? I don’t have X11.
VSCode can display images from the remote file system, so in principle it should be possible to plot to a file, and then show it in VSCode. Is there any convenient workflow around that?
If you are only looking for a sketch, you could use
It runs in the terminal.
Thanks. I already knew about it but it works surprisingly well and deserves to be mentioned.
using Plots; plot(1:3, rand(3)) opens a plot in VSCode (over ssh) for me. I’d also recommend setting
ENV["GKSwstype"]="nul" to get rid of the error message about not having an X server on the remote.
Wow, amazing, thanks! Embarrassing that I didn’t even consider trying that…
I would recommand to read this:
Here is the case. I had the same type of errors that you posted. Even though I installed qt5-default, I had to add ENV["GKSwstype"] = "100" in my startup.jl file, and the problem disappeared. May be you can try the second step.
Edit: Of course the library libQt5Widgets.so must be on the system.