Plotting over ssh without X11

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?

Other ideas?

Thanks,

Niclas

If you are only looking for a sketch, you could use UnicodePlots.jl.
It runs in the terminal.

3 Likes

Thanks. I already knew about it but it works surprisingly well and deserves to be mentioned.

Niclas

Just 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.

5 Likes

Wow, amazing, thanks! Embarrassing that I didn’t even consider trying that…

Niclas

I would recommand to read this:

1 Like