8000 GitHub - ross/ipycanvas: Interactive Canvas in Jupyter
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ross/ipycanvas

 
 

Repository files navigation

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

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

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

An 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

About

Interactive Canvas in Jupyter

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 57.3%
  • TypeScript 2BBC 39.9%
  • JavaScript 2.8%
0