Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Using WGLMakie remotely with Pluto.jl #90

@nicolamos

Description

@nicolamos

I tried a simple example to run a Pluto notebook with a WGLMakie interactive plot.
When Pluto is run locally, the plots show just fine. On the other hand, if the notebook is launched on a remote machine (connection through a ssh tunnel), the plots are just blank and I get the warning

┌ Warning: Waiting for page sessions to load.
│                 This can happen for the first cells to run, or is indicative of faulty state
└ @ JSServe ~/.julia/packages/JSServe/bo3OG/src/display.jl:158

What I tried is the following (Pluto cells delimited by begin…end blocks):

begin
  using JSServe
  Page(listen_url="0.0.0.0")
end
begin
  using WGLMakie
  f(x, y) = sin(x^2+y^2)
  xs = range(-2,2; length=40)
  ys = xs
  zs = f.(xs, ys’)
  surface(xs, ys, zs)
end

Maybe I didn’t understand how to configure the server with JSServe.
Thanks for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions