Help using GLMakie or WGLMakie on ssh

Try forwarding the port WGLMakie uses to localhost:

ssh -L 9384:localhost:9384 user@server

In Julia

using WGLMakie
scatter(1:4)

And then open:

http://localhost:9384/browser-display

I’m not sure how to optimize this work flow - I guess we should at least document it.
The problem is, that Bonito.jl runs: Bonito.HTTPServer.openurl("http://localhost:9384/browser-display") internally, which at least succeeds on my server, without opening a browser on the client.
If it would fail, we could notify the user about it going wrong instead of waiting for the browser to load the display :frowning:

1 Like