A small widget to let users draw by hand in a Jupyter notebook.
Project description
Drawing utility in ipycanvas
Small utility to make simple drawings in Jupyter notebooks with ipycanvas and ipywidgets. Useful for getting quick user input in research prototypes, e.g., for masking or annotation.
Install
pip install ipycanvas-drawing
Usage
Create a simple drawing interface. Check out the notebook in examples
for a more complete example.
from ipycanvas_drawing import DrawingWidget
drawing_widget = DrawingWidget(width=500, height=500)
drawing_widget.show()
Credits
Based on the hand drawing example provided by @martinRenou, but adds some additional functionality like adding squares and ellipses and a 1-step undo.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipycanvas_drawing-0.0.3.tar.gz
(47.2 kB
view hashes)
Built Distribution
Close
Hashes for ipycanvas_drawing-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d66e064614b78e8b582c12efd050c513994755c55222e98c401b8e270da2486 |
|
MD5 | 08967a33f285dcc1954c6fc473008e42 |
|
BLAKE2b-256 | 578a29c21617ef1dc0fe21e5310f31c93e464fdf0b260a0cb673e2e556bf865c |