Skip to main content

Interactive widgets library exposing the browser's Canvas API

Project description

ipycanvas

Interactive Canvas in Jupyter

ipycanvas Documentation Binder JupyterLite Downloads Join the chat at https://gitter.im/jupyter-widgets-contrib/ipycanvas

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:

Binder

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!

Or join the gitter channel: Join the chat at https://gitter.im/jupyter-widgets-contrib/ipycanvas

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

John Conway's Game Of Life

Give a "hand-drawn" style to your drawings using the RoughCanvas

RoughCanvas

Draw Particles from IPython

Particles

Custom Sprites

Sprites

Draw data directly from a NumPy array

NumPy

Create your own plotting library fully in Python

Plotting

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-0.14.3.tar.gz (4.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipycanvas-0.14.3-py2.py3-none-any.whl (143.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file ipycanvas-0.14.3.tar.gz.

File metadata

  • Download URL: ipycanvas-0.14.3.tar.gz
  • Upload date:
  • Size: 4.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ipycanvas-0.14.3.tar.gz
Algorithm Hash digest
SHA256 c6a53a22eebf4d611b168b8f4434145883f27a7575509bd99a4bfc48c5385a39
MD5 ede083cfd8c48be64964ff5cf7ec2582
BLAKE2b-256 5056484c8979bbcaa3e3f2da4eac6a1eb41e998e353e4c6ef89e9612889813c8

See more details on using hashes here.

File details

Details for the file ipycanvas-0.14.3-py2.py3-none-any.whl.

File metadata

  • Download URL: ipycanvas-0.14.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 143.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ipycanvas-0.14.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8a2f48e1e079355d3e7d5683e5c6e7684a87c15c3750c8d8cd2289c95383ee3e
MD5 5e034af9ebcb6b464674edc7b39345bf
BLAKE2b-256 1137c6880bd16093793dcb4c005011cf968f45fd815b7b5094fa8374524add26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page