I have the julia REPL running on my local machine and I use Distributed to connect to a headless remote server via ssh. I want to use these workers to do some @distributed computations and then plot the results on my local REPL, e.g. using GLMakie.
As GLMakie requires X11 and graphics drivers to be installed, it is only installed on my local machine but not on the server. When I try to include GLMakie or call it after having connected to the headless server, the call fails.
Example:
using GLMakie
using Distributed
addprocs([...]) # This should connect to the headless server
scatter(randn(10), randn(10))
I have the julia REPL running on my local machine and I use
Distributed
to connect to a headless remote server via ssh. I want to use these workers to do some@distributed
computations and then plot the results on my local REPL, e.g. usingGLMakie
.As
GLMakie
requires X11 and graphics drivers to be installed, it is only installed on my local machine but not on the server. When I try to includeGLMakie
or call it after having connected to the headless server, the call fails.Example:
This fails with the error message
When including
GLMakie
after having connected to the remote machine,the error message is also of the type
is required but does not seem to be installed
.] instantiate
and] precompile
executed successfully before all of this.This was JuliaPlots/Makie.jl/issues/1817 .