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

WebIO & PlotlyJS support? #299

Closed
KajWiik opened this issue Aug 16, 2020 · 22 comments
Closed

WebIO & PlotlyJS support? #299

KajWiik opened this issue Aug 16, 2020 · 22 comments
Assignees
Labels
help welcome If you are experienced in this topic - let us know! other packages Integration with other Julia packages

Comments

@KajWiik
Copy link

KajWiik commented Aug 16, 2020

Should PlotlyJS work? I get WebIO not detected. error.

@KajWiik
Copy link
Author

KajWiik commented Aug 16, 2020

Oops, this is already being worked on.
#141 (comment)

@KajWiik KajWiik closed this as completed Aug 16, 2020
@fonsp
Copy link
Owner

fonsp commented Aug 16, 2020

Can you post a notebook that produces the error?

@KajWiik
Copy link
Author

KajWiik commented Aug 16, 2020

### A Pluto.jl notebook ###
# v0.11.6

using Markdown
using InteractiveUtils

# ╔═╡ 0ec2f8c0-dfb3-11ea-2064-272cfc7704cf
using PlotlyJS

# ╔═╡ 386ec6f4-dfb3-11ea-021d-7742d5146226
plot(rand(10))

# ╔═╡ Cell order:
# ╠═0ec2f8c0-dfb3-11ea-2064-272cfc7704cf
# ╠═386ec6f4-dfb3-11ea-021d-7742d5146226

@fonsp fonsp reopened this Aug 16, 2020
@fonsp fonsp added the other packages Integration with other Julia packages label Aug 16, 2020
@fonsp fonsp changed the title PlotlyJS support? WebIO & PlotlyJS support? Aug 18, 2020
@fonsp
Copy link
Owner

fonsp commented Aug 18, 2020

Until this is fixed, you could use Plotly as a backend for Plots.jl, but the API is different.

@KajWiik
Copy link
Author

KajWiik commented Aug 18, 2020

That works perfectly, many thanks!

@Masacroso
Copy link

Im using PlotlyJS as a backend of Plots.jl and it works like a charm. Maybe you can make the same.

@KajWiik
Copy link
Author

KajWiik commented Aug 21, 2020

Im using PlotlyJS as a backend of Plots.jl and it works like a charm. Maybe you can make the same.

Yes, it works perfectly!

@fonsp fonsp added the help welcome If you are experienced in this topic - let us know! label Sep 4, 2020
@NaNotia
Copy link

NaNotia commented Oct 9, 2020

PlotlyJS works well, but I want the figure shows in Pluto window, not its own Electron window when I use WebIO utilities.

Is there any solution for taking both PlotlyJS's strong interactivity and PlutoUI's convenient bind tools?

@dralletje dralletje self-assigned this Oct 12, 2020
@dralletje
Copy link
Collaborator

Not yet a solution, we have to implement a webIO solution for Pluto.. Working on it though

@empet
Copy link

empet commented Dec 16, 2020

Any news on WebIO for Pluto to be able to display plotly plots defined by PlotlyJS?

@fonsp
Copy link
Owner

fonsp commented Dec 16, 2020

It's coming at some point

@empet
Copy link

empet commented May 1, 2021

Hopping that meanwhile this issue has been fixed, I tried again to display a PlotlyJS plot in Pluto, but the same message persists :(

WebIO not detected.
Please read the troubleshooting guide for more information on how to resolve this issue.
https://juliagizmos.github.io/WebIO.jl/latest/troubleshooting/not-detected/

Is this much different from displaying plots generated by WGLMakie?

@KajWiik
Copy link
Author

KajWiik commented May 2, 2021 via email

@sglyon
Copy link

sglyon commented Aug 23, 2021

@fonsp what would it take to get an integration working?

I'm the PlotlyJS.jl author and am teaching some courses this coming semester. I'd love to use PlotlyJS in my course and am happy to help get this fixed

@dralletje
Copy link
Collaborator

@sglyon nice! I'll make sure the PR works on the latest Pluto version by tomorrow - then we can have a call to look if it covers all features you need? I use Plotly enough to make that PR, but I'm no expert by any means :P

@sglyon
Copy link

sglyon commented Aug 23, 2021

Excellent! Thank you for the hard work. Ping me if I can help

@gganapat
Copy link

gganapat commented Jan 9, 2022

@fonsp, @dralletje, @sglyon Any progress on this end?

thx!

@newptcai
Copy link

Any progress?

@fonsp
Copy link
Owner

fonsp commented Nov 30, 2022

We recently started working on this again in #2392 ! We decided to focus on JSServe.jl instead of WebIO.jl for now, see the PR to learn more.

@fonsp
Copy link
Owner

fonsp commented Jan 5, 2024

WebIO will probably not be supported in Pluto, but we are working on alternatives:

  • dynamic JS content: on top of what Pluto already offers, we are working on ⚡️ AbstractPlutoDingetjes.Display.with_js_link to request calculations and data from Julia dynamically #2726 and supporting Bonito.jl (aka JSServe.jl)
  • asset server: we find the API of AssetRegistry.jl too difficult to support properly, in particalur in Static HTML exports (viewing online or on the web), where no Pluto server is running. We have working prototypes of alternatives that do not require a web server, and use data URLs or AbstractPlutoDingetjes.Display.published_to_js instead.

@fonsp fonsp closed this as completed Jan 5, 2024
@beorostica
Copy link

Hi there!
PlotlyJS relies on WebIO. So, if WebIO is not supported, it means that the beautiful PlotlyJS plots won't be displayed in Pluto 😢. Is there a possibility to maintain support for WebIO?

@fonsp
Copy link
Owner

fonsp commented Jan 27, 2024

@beorostica Take a look at PlutoPlotly.jl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help welcome If you are experienced in this topic - let us know! other packages Integration with other Julia packages
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants