{"id":21465,"library":"ipycanvas","title":"ipycanvas","description":"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.","status":"active","version":"0.14.3","language":"python","source_language":"en","source_url":"https://github.com/jupyter-widgets-contrib/ipycanvas","tags":["jupyter","canvas","widgets","interactive","visualization"],"install":[{"cmd":"pip install ipycanvas","lang":"bash","label":"Install via pip"},{"cmd":"conda install -c conda-forge ipycanvas","lang":"bash","label":"Install via conda"}],"dependencies":[{"reason":"Required for widget communication with Jupyter","package":"ipywidgets","optional":false},{"reason":"Used for image data and array operations","package":"numpy","optional":true}],"imports":[{"note":"Canvas is exposed at top-level, not in submodule","wrong":"from ipycanvas.widgets import Canvas","symbol":"Canvas","correct":"from ipycanvas import Canvas"},{"note":"No common wrong import known","symbol":"MultiCanvas","correct":"from ipycanvas import MultiCanvas"}],"quickstart":{"code":"from ipycanvas import Canvas\n\ncanvas = Canvas(width=200, height=200)\ncanvas.fill_style = 'blue'\ncanvas.fill_rect(20, 20, 100, 100)\ncanvas","lang":"python","description":"Create a canvas, set fill style, draw a rectangle, and display."},"warnings":[{"fix":"Replace `canvas.size = (200, 200)` with `canvas.width = 200` and `canvas.height = 200`.","message":"In version 0.12.0, the deprecated `size` property was removed. Use `width` and `height` instead.","severity":"breaking","affected_versions":">=0.12.0"},{"fix":"Check the documentation for supported methods; use `canvas.get_image_data(x, y, w, h)` which returns a list of RGBA values.","message":"ipycanvas 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.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install ipycanvas` or `conda install -c conda-forge ipycanvas`.","cause":"ipycanvas is not installed.","error":"ModuleNotFoundError: No module named 'ipycanvas'"},{"fix":"Run `jupyter nbextension enable --py widgetsnbextension` or restart the kernel.","cause":"The ipywidgets extension may not be enabled or the notebook needs a restart.","error":"ipycanvas is not displayed in Jupyter notebook"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}