# WGLMakie.jl in Pluto running on remote machine

**URL:** <https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169>\
**Category:** Visualization\
**Tags:** pluto, makie, remote\
**Created:** [September 14, 2021, 8:04pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169 "2021-09-14T20:04:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [September 14, 2021, 8:04pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169/1 "2021-09-14T20:04:14Z")

</div>

I am used to WGLMakie.jl visualizations in Pluto locally, following the instructions in the docs:

```julia
using JSServe
Page() # create page in one cell

```

and then

```julia
using WGLMakie

scatter(rand(100), rand(100))

```

Everything works smoothly. Now I am experimenting with the same workflow when Pluto is running in a remote machine. In particular, I am logged in in a VSCode remote connect session (SSH) where I launch Pluto using its REPL. VSCode automatically forwards the port to my local machine so that I can visualize the Pluto notebook locally even though it is running in the remote machine.

However, the visualization is not working and I wonder if there is any special settings we need to pass to `Page` in order for it to work? What option should be customized if any?

If someone can try to reproduce the issue, that would help a lot:

- Use VS Code Remote Connect to login in a remote machine
- Start a remote Julia REPL in VS Code using the Julia extension
- Launch Pluto in the remote as usual (import Pluto; Pluto.run())
- Try to create a plot with the cells above

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [September 14, 2021, 8:20pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169/2 "2021-09-14T20:20:03Z")

</div>

Have you seen [https://makie.juliaplots.org/stable/documentation/remote/#wglmakie](https://makie.juliaplots.org/stable/documentation/remote/#wglmakie)?

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [September 14, 2021, 8:32pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169/3 "2021-09-14T20:32:50Z")

</div>

It seems to describe the precise solution to the problem. Will give it a try, thanks! 🙏🏽

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [September 14, 2021, 8:47pm UTC](https://discourse.julialang.org/t/wglmakie-jl-in-pluto-running-on-remote-machine/68169/4 "2021-09-14T20:47:14Z")

</div>

Worked like a charm. Just need to create a new port (say 8081) on VSCode (it shows this option when Pluto is launched) and then use `Page(listen_port=8081)`. Everything is working now 💯
