tokk-nv / ipycanvas

Interactive Canvas in Jupyter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ipycanvas

Interactive Canvas in Jupyter

Documentation Binder Downloads

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

Installation

You can install using pip:

pip install ipycanvas

Or using conda:

conda install -c conda-forge ipycanvas

And if you use jupyterlab:

conda install -c conda-forge nodejs
jupyter labextension install @jupyter-widgets/jupyterlab-manager ipycanvas

An development installation guide, can be found here

Examples

Create John Conway's Game Of Life

John Conway's Game Of Life

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

About

Interactive Canvas in Jupyter

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 71.2%Language:TypeScript 25.8%Language:JavaScript 3.1%