Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static Pluto export doesn't work with multiple WGLMakie plots #1343

Open
greimel opened this issue Sep 27, 2021 · 3 comments
Open

Static Pluto export doesn't work with multiple WGLMakie plots #1343

greimel opened this issue Sep 27, 2021 · 3 comments
Labels
bug Integration with other packages specific environment related to a specific environment/configuration, e.g. headless, ssh, vscode, etc WGLMakie This relates to WGLMakie.jl, the Web-based WebGL backend for Makie.

Comments

@greimel
Copy link
Contributor

greimel commented Sep 27, 2021

The following notebook contains multiple plots.

notebook for copy pasting
# ╔═╡ 090d5e80-1f8a-11ec-1e2f-054963d029c6
begin
	using WGLMakie
	using JSServe
	JSServe.Page(exportable = true)
end

# ╔═╡ ee0893c8-e3d1-4b7f-b949-f8ad733aaf3f
scatter(rand(100), rand(100))

# ╔═╡ a596c601-a167-445b-b580-3016eb8035b6
scatter(rand(100), rand(100))

In the interactive notebook, both plots are shown.

image

However, in the static html export, only the first plot is shown. (I used Chrome on macos, latest versions of Pluto, WGLMakie and JSServe).

image

I brought this up on Slack some time ago and I think I didn't open an issue back then. (I don't know if this fits here, at JSServe.jl or Pluto.jl)

@greimel
Copy link
Contributor Author

greimel commented Jan 14, 2022

I've just tried to

  • build that above notebook on macos, ubuntu and windows using github actions
  • open the notebook on Firefox, Safari and Chrome (all on macos)

It never displays both plots.

Has anyone ever successfully exported Pluto notebooks with multiple WGLMakie plots?

(I know @koehlerson has used Pluto + WGLMakie - did you ever export a html?)

@koehlerson
Copy link
Contributor

Hey,
I use WGLMakie for Documenter.jl and this works for me quite well: https://koehlerson.github.io/FerriteVis.jl/dev/tutorial/
Checking the difference in your JSServe.Page setup, you can try to set offline to true as well, at least that's what I did back then when setting up the page: https://github.com/koehlerson/FerriteVis.jl/blob/master/docs/src/tutorial.md?plain=1#L15-L18

Unfortunately, I have no other experiences. If this doesn't work then it seems that something with the Pluto interaction is broken, because the html export to Documenter definitely works. Maybe the offline keyword helps :)

@greimel
Copy link
Contributor Author

greimel commented Jan 14, 2022

Thanks, @koehlerson. I tried offline=true without success. I guess it might be a good idea to open an issue with Pluto then.

@ffreyer ffreyer added bug WGLMakie This relates to WGLMakie.jl, the Web-based WebGL backend for Makie. Integration with other packages specific environment related to a specific environment/configuration, e.g. headless, ssh, vscode, etc labels Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Integration with other packages specific environment related to a specific environment/configuration, e.g. headless, ssh, vscode, etc WGLMakie This relates to WGLMakie.jl, the Web-based WebGL backend for Makie.
Projects
None yet
Development

No branches or pull requests

3 participants