py5 is a new version of Processing for Python 3.9+. It makes the Java Processing jars available to the CPython interpreter using JPype. It can do just about everything Processing can do, except with Python instead of Java code.
The goal of py5 is to create a new version of Processing that is integrated into the Python ecosystem. Built into the library are thoughtful choices about how to best get py5 to work with other popular Python libraries and tools such as Jupyter, numpy, and Pillow.
The py5jupyter library provides Jupyter-related functionality for py5. This includes the Jupyter kernels and Jupyter widgets.
For more in-depth information about py5, see the py5generator github repo.
You can install using pip
:
pip install py5 py5jupyter
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:
jupyter nbextension enable --py [--sys-prefix|--user|--system] py5jupyter
Have a comment or question? We'd love to hear from you! The best ways to reach out are:
- github discussions and issues
- Mastodon fosstodon.org/@py5coding
- twitter @py5coding
- processing foundation discourse