Figures as Jupyter widgets

I’d like to create a Jupyter notebook which I can deploy on Binder which allows users to click on a two-dimensional plot and have a curve drawn through the clicked point. For example, the curve might be an ODE solution with the given point as an initial condition. Here’s an example in pure Javasript (it works by dragging instead of clicking, but similar idea).

It’s currently possible to do this in Python using %matplotlib widget. Is there a way to do it with a Julia kernel?

1 Like

@fonsp has a proof of concept of this with Pluto, I believe.

1 Like
2 Likes

Very cool! Remarkable that this is possible using only Plots.jl.

1 Like