Interactive widgets library exposing the browser's Canvas API
Project description
ipycanvas
Interactive Canvas in Jupyter
ipycanvas is a lightweight, fast and stable library exposing the browser's Canvas API to IPython. It allows you to draw simple primitives directly from Python like text, lines, polygons, arcs, images etc. This simple toolset allows you to draw literally anything!
Try it online!
You can try it online by clicking on this badge:
Documentation
You can read the documentation following this link: https://ipycanvas.readthedocs.io
Questions?
If you have any question, or if you want to share what you do with ipycanvas, start a new discussion on Github!
Installation
You can install using pip
:
pip install ipycanvas orjson
Or using conda
:
conda install -c conda-forge ipycanvas
And if you use jupyterlab <= 2:
conda install -c conda-forge yarn
jupyter labextension install @jupyter-widgets/jupyterlab-manager ipycanvas
A development installation guide, can be found here
Examples
Create John Conway's Game Of Life
Give a "hand-drawn" style to your drawings using the RoughCanvas
Draw Particles from IPython
Custom Sprites
Draw data directly from a NumPy array
Create your own plotting library fully in Python
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ipycanvas-0.13.3.tar.gz
.
File metadata
- Download URL: ipycanvas-0.13.3.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e867c509b01f5c4cfc009f7d921e32e5a12a029ac856e78c04ff15b65692c4a |
|
MD5 | 41f85f3555d1c6c3ce7aa4901cc714ad |
|
BLAKE2b-256 | afcfc0a80b1f4718a6c96e0b27751762180e39b3f30e09321d37cf3d04a09b99 |
File details
Details for the file ipycanvas-0.13.3-py2.py3-none-any.whl
.
File metadata
- Download URL: ipycanvas-0.13.3-py2.py3-none-any.whl
- Upload date:
- Size: 125.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d37adb2f45d2fef1c3d33c69a0518055694d87827b2f577f3c426d7712f75daa |
|
MD5 | 094a293690c5ed0338f424597d053733 |
|
BLAKE2b-256 | e2fce3867e413adbfede3a9c372ec015416ccb0a6493659db5812eeec447a73b |