Skip to content
No description, website, or topics provided.
Jupyter Notebook JavaScript Python CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Example save widget state Feb 4, 2018
jupyter-drawing-pad upgrade version Feb 4, 2018
.gitignore Change gitignore and readme Oct 25, 2017
LICENSE clean repo + new demo nb + LICENSE Jan 6, 2018
README.md update readme Jan 31, 2018
env.yml Add env.yml + change readme position. Oct 25, 2017

README.md

jupyter-drawing-pad

Binder

1 - Overview

This is a simple widget inspired by a drawing pad (see this example). Thanks to this widget, you can draw in a box whatever you want (for instance a signature). The coordinates of the points of the trajectory is synchronised with the Python kernel.

You'll find some additional functionalities :

  • a Save button with a text field in order to save your signature along with your name
  • a Clear button to clear what is drawn in the box
  • a Login button : by entering your name (after having saved a signature for this name) and drawing your signature, a message Welcome (name) should appear (if the signature is close enough to the saved one)

When you try to login, the comparison between the signature to the registered one takes into account not only the spatial coordinates but also time.

To get a feel of the result check out the demo notebook.

The official documentation describes a Hello World widget and also points to several very advanced widgets from bqplot to ipyvolume.
But there is a large gap between these 2 stages.

This simple widget may serve as a template for intermediate users who feel the (huge) potential of this library, want to build one, but cannot find examples relevant to their level i.e. past absolute beginner.

For more info about jupyter widgets (installation process, packaging and publishing), see this tutorial repo. All what's written there is also true for this package, just changing the name first-widget into jupyter-drawing-pad.

2 - Installation

$ pip install jupyter_drawing_pad
You can’t perform that action at this time.