Interactive Canvas in Jupyter
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:
You can read the documentation following this link: https://ipycanvas.readthedocs.io
You can install using
pip install ipycanvas
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