Drawing
Events
Bindings
Animation
Lasso
Rectangles
Chart
Images
Transitions
Assemblies
Frames
N-Dimensional Frames
N-Dimensional Scatter Plot
Network Explorer
Array explorer
Color chooser
Opacity Sliders
Edit polygon
Vector Field

This is an example page for the jp_doodle package.

jp_doodle makes implementing special purpose interactive visualizations easy.

Quick references: Javascript API; Python API.

Miscellaneous Demos: Image detail viewer..

These example pages use stand alone Javascript, but the code used to implement them can be transliterated to Python and implemented using Jupyter widgets (modulo some subtleties).
Please see the Jupyter notebooks in the package for additional discussion and documentation.
Please use Binder to easily run the Jupyter notebooks of the package.

Events

This illustration uses mouse events associated to the whole canvas to allow the user to drag elements using the mouse.

In this illustration you may move the named objects (everything colorful) by mousing down on the object and dragging it to a new location and then mousing up.

Code

Discussion

In this case the events are associated with the whole canvas (even though they sometimes use the name of the object under the mouse event).

Note that it is not possible to modify the semi-transparent grey square without clearing the whole canvas because the square was not given a name.