Registry / web-framework / ipycanvas

ipycanvas

JSON →
library0.14.3pypypi✓ verified 84d ago

Interactive widgets library exposing the browser's Canvas API for Jupyter notebooks and JupyterLab. Current version 0.14.3. Release cadence: irregular, with multiple releases per year.

pip install ipycanvas
INSTALL
IMPORT
SIG · IPYCANVAS
I
ipycanvas
web-frameworkpythonv0.14.3
Install
7.9s avg
Import
2135ms
Disk
171MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.14.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 2.182s · 177.3MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 7.9s · import 2.088s · 174MB
171MB installed
● package 171MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Canvas
from ipycanvas import Canvas
from ipycanvas.widgets import Canvas
Canvas is exposed at top-level, not in submodule
MultiCanvas
from ipycanvas import MultiCanvas
No common wrong import known

Create a canvas, set fill style, draw a rectangle, and display.

from ipycanvas import Canvas canvas = Canvas(width=200, height=200) canvas.fill_style = 'blue' canvas.fill_rect(20, 20, 100, 100) canvas
Debug
Known issues
breakingIn version 0.12.0, the deprecated `size` property was removed. Use `width` and `height` instead.
fix
Replace `canvas.size = (200, 200)` with `canvas.width = 200` and `canvas.height = 200`.
affects: >=0.12.0
gotchaipycanvas does not support the full HTML5 Canvas API; only a subset of methods is implemented. For example, `getImageData` returns a list instead of ImageData object.
fix
Check the documentation for supported methods; use `canvas.get_image_data(x, y, w, h)` which returns a list of RGBA values.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'ipycanvas'
ipycanvas is not installed.
fix
Run `pip install ipycanvas` or `conda install -c conda-forge ipycanvas`.
ipycanvas is not displayed in Jupyter notebook
The ipywidgets extension may not be enabled or the notebook needs a restart.
fix
Run `jupyter nbextension enable --py widgetsnbextension` or restart the kernel.
Upgrade
Version history
0.14.3latest on PyPI · released Dec 11, 2025
Audit
Dependencies
ipywidgetsrequiredRequired for widget communication with Jupyter
numpyoptionalUsed for image data and array operations
Agent activity
4 hits · last 30 days
node
4
Resources
ipycanvas — pip install ipycanvas · libregistry