ipycanvas v0.13.3
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 orjsonOr using conda:
conda install -c conda-forge ipycanvasAnd if you use jupyterlab <= 2:
conda install -c conda-forge yarn
jupyter labextension install @jupyter-widgets/jupyterlab-manager ipycanvasA 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

1 year ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago