# py5

**URL:** https://discourse.processing.org/c/a-version-of-processing-for-python-38-to-work-with-other-popular-python-libraries-and-tools-such-as-jupyter-numpy-shapely-trimesh-matplotlib-and-pillow-built-to-work-with-popular-python-libraries-and-tools-such-as-jupyter-numpy-shapely-etc/28.md

[Latest](https://discourse.processing.org/latest.md) · [Categories](https://discourse.processing.org/categories.md) · [Tags](https://discourse.processing.org/tags.md)

---

## [About the py5 category](https://discourse.processing.org/t/about-the-py5-category/43622)

<div class="topic-metadata">

**Author:** [@sableraph](https://discourse.processing.org/u/sableraph)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 2:26pm UTC](https://discourse.processing.org/t/about-the-py5-category/43622 "2024-07-30T14:26:26Z")

</div>

A version of Processing for Python, built to work with other popular Python libraries and tools such as Jupyter, NumPy, Shapely, trimesh, Matplotlib, and Pillow.

---

## [Using py5's "Live Coding" feature on Thonny IDE](https://discourse.processing.org/t/using-py5s-live-coding-feature-on-thonny-ide/48967)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 0\
**Last updated:** [July 7, 2026, 3:20am UTC](https://discourse.processing.org/t/using-py5s-live-coding-feature-on-thonny-ide/48967 "2026-07-07T03:20:29Z")

</div>

The py5 Live Coding feature can be briefly described as a tool that runs your module mode1 sketch and keeps an eye on changes at the source file, updating the running sketch with any2 changes you save from your editor/ID…

---

## [Py5 release 0.10.11a0!](https://discourse.processing.org/t/py5-release-0-10-11a0/48937)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 3\
**Last updated:** [July 3, 2026, 3:05am UTC](https://discourse.processing.org/t/py5-release-0-10-11a0/48937 "2026-07-03T03:05:34Z")

</div>

Version 0.10.11a0 of py5 is now live. What changed? Addressing MacOS’s so-called “App Nap” MacOS will throttle the CPU usage of application windows that do not have the focus. This is called “App Nap.” This can cause a …

---

## [Fluid fun with py5 and NumPy](https://discourse.processing.org/t/fluid-fun-with-py5-and-numpy/47943)

<div class="topic-metadata">

**Author:** [@mcintyre](https://discourse.processing.org/u/mcintyre)\
**Replies:** 5\
**Last updated:** [March 1, 2026, 4:26pm UTC](https://discourse.processing.org/t/fluid-fun-with-py5-and-numpy/47943 "2026-03-01T16:26:51Z")

</div>

Hello! I felt like sketching this afternoon, so I dusted off my old implementation of Stam’s Real-Time Fluid Dynamics for Games. The original version used pygame and NumPy – turns out porting it to py5 was straightforwa…

---

## [ControlP5 in py5](https://discourse.processing.org/t/controlp5-in-py5/45799)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 13\
**Last updated:** [February 26, 2026, 12:59am UTC](https://discourse.processing.org/t/controlp5-in-py5/45799 "2026-02-26T00:59:11Z")

</div>

The following source code demonstrates using cp5 controls in py5. This demo may be run in a Thonny editor using ‘Imported mode for py5’. In addition, the controlP5.jar must be in a folder entitled ‘jars’ in the py5 sket…

---

## [Why the "P3D renderer is not in the class path"?](https://discourse.processing.org/t/why-the-p3d-renderer-is-not-in-the-class-path/47257)

<div class="topic-metadata">

**Author:** [@larrycuba](https://discourse.processing.org/u/larrycuba)\
**Replies:** 5\
**Last updated:** [October 1, 2025, 12:47am UTC](https://discourse.processing.org/t/why-the-p3d-renderer-is-not-in-the-class-path/47257 "2025-10-01T00:47:55Z")

</div>

i’m begging to use Py5Graphics with the command: pg = py5.create\_graphics( 500, 500, ‘P3D’) and later when i begin to draw into this window, i get the error: “The P3D renderer is not in the class path” How is the cla…

---

## [Can't access Py5Graphics screen from imported module](https://discourse.processing.org/t/cant-access-py5graphics-screen-from-imported-module/47220)

<div class="topic-metadata">

**Author:** [@larrycuba](https://discourse.processing.org/u/larrycuba)\
**Replies:** 4\
**Last updated:** [September 26, 2025, 7:30pm UTC](https://discourse.processing.org/t/cant-access-py5graphics-screen-from-imported-module/47220 "2025-09-26T19:30:24Z")

</div>

i’ve declared the ‘pg’ variable as global in all the modules. then in my main module, i’ve begun with: pg=None def setup(): global pg pg = py5.create\_graphics(400,400) pg.begin\_draw() ... then in another impo…

---

## [New py5 release 0.10.7a0!](https://discourse.processing.org/t/new-py5-release-0-10-7a0/47054)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [August 30, 2025, 3:38pm UTC](https://discourse.processing.org/t/new-py5-release-0-10-7a0/47054 "2025-08-30T15:38:52Z")

</div>

This release includes the following version updates: Minimum Python version is now 3.10 (previously 3.9) JPype minimum version is now 1.6 (previously 1.5.2) numpy minimum version is now 2.2 (previously 1.26) A…

---

## [Mask() can only be used with an image that's the same size](https://discourse.processing.org/t/mask-can-only-be-used-with-an-image-thats-the-same-size/46633)

<div class="topic-metadata">

**Author:** [@SNitaine](https://discourse.processing.org/u/SNitaine)\
**Replies:** 3\
**Last updated:** [June 30, 2025, 5:23pm UTC](https://discourse.processing.org/t/mask-can-only-be-used-with-an-image-thats-the-same-size/46633 "2025-06-30T17:23:59Z")

</div>

Can anyone please explain the error mask() can only be used with an image that's the same size.? Every time I try to use a Py5Graphics object/image as a mask, I run into that error. But the image loaded is the same pixel…

---

## [FX2D Fails in Windows 11](https://discourse.processing.org/t/fx2d-fails-in-windows-11/46577)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 15\
**Last updated:** [June 20, 2025, 8:11pm UTC](https://discourse.processing.org/t/fx2d-fails-in-windows-11/46577 "2025-06-20T20:11:40Z")

</div>

I am using the latest version of py5 (0.10.6). Its associated py5\_tools was used to install JavaFX on my Windows 11 operating system. The following code run in the Thonny editor fails on Windows 11; a window is created b…

---

## [JavaFX Controls in py5](https://discourse.processing.org/t/javafx-controls-in-py5/45800)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 17\
**Last updated:** [June 18, 2025, 4:11am UTC](https://discourse.processing.org/t/javafx-controls-in-py5/45800 "2025-06-18T04:11:47Z")

</div>

The following source code demonstrates using javafx controls in py5. This demo may be run in the Thonny editor using ‘Imported mode for py5’. In addition, copies of the seven javafx.xxxx.jar files and a copy of javafx.j…

---

## [\[Workaround\] Full\_screen() is not working (py5 in VS Code on MacOs)](https://discourse.processing.org/t/workaround-full-screen-is-not-working-py5-in-vs-code-on-macos/46498)

<div class="topic-metadata">

**Author:** [@Bcome](https://discourse.processing.org/u/Bcome)\
**Replies:** 17\
**Last updated:** [June 11, 2025, 7:14pm UTC](https://discourse.processing.org/t/workaround-full-screen-is-not-working-py5-in-vs-code-on-macos/46498 "2025-06-11T19:14:34Z")

</div>

Hello! While size() is working fine, I can’t get full\_screen() to work and get this error message below. The problem with size() is that I can’t click on the window’s green button that would allow me to be in a true full…

---

## [\[Solved\] Can't run py5 sketch : Fatal error detected by the Java Runtime Environment](https://discourse.processing.org/t/solved-cant-run-py5-sketch-fatal-error-detected-by-the-java-runtime-environment/46329)

<div class="topic-metadata">

**Author:** [@Bcome](https://discourse.processing.org/u/Bcome)\
**Replies:** 9\
**Last updated:** [May 10, 2025, 4:00am UTC](https://discourse.processing.org/t/solved-cant-run-py5-sketch-fatal-error-detected-by-the-java-runtime-environment/46329 "2025-05-10T04:00:54Z")

</div>

Hello, I have a problem running the basic example py5 sketch (.py file) with VS code on my Mac with the error message below (also telling me that an error report file was created). I’m sorry in advance if the solution is…

---

## [Happy New Year & Happy New py5 Release!](https://discourse.processing.org/t/happy-new-year-happy-new-py5-release/45527)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 0\
**Last updated:** [January 2, 2025, 1:18pm UTC](https://discourse.processing.org/t/happy-new-year-happy-new-py5-release/45527 "2025-01-02T13:18:04Z")

</div>

Code using py5, shapely and scipy at: GitHub - villares/sketch-a-day: One visual idea a day Read about the latest py5 release at: TL:DR; for the December 31st release: You can now intercept the ESC key and you…

---

## [Java library problems](https://discourse.processing.org/t/java-library-problems/45377)

<div class="topic-metadata">

**Author:** [@slashwreck](https://discourse.processing.org/u/slashwreck)\
**Replies:** 4\
**Last updated:** [November 24, 2024, 3:40pm UTC](https://discourse.processing.org/t/java-library-problems/45377 "2024-11-24T15:40:47Z")

</div>

Windows 10 environment. Installed Java SE Development Kit 23.0.1 Set system environment variable JAVA\_HOME = C:\\Program Files\\Java\\jdk-23\\bin (earlier i set it to JAVA\_HOME = C:\\Program Files\\Java\\jdk-23 and it had th…

---

## [New Windows "portable bundle" with Thonny IDE and py5 0.10.0a0 out!](https://discourse.processing.org/t/new-windows-portable-bundle-with-thonny-ide-and-py5-0-10-0a0-out/43967)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 11\
**Last updated:** [November 20, 2024, 7:21am UTC](https://discourse.processing.org/t/new-windows-portable-bundle-with-thonny-ide-and-py5-0-10-0a0-out/43967 "2024-11-20T07:21:11Z")

</div>

You can download it from here more info and suggestions for testing here I you find any trouble, please report! I wish I could make an AppImage equivalent for Linux (but it is beyond my skills), and also re-package th…

---

## [New py5 release 0.10.3a1!](https://discourse.processing.org/t/new-py5-release-0-10-3a1/45316)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [November 10, 2024, 9:41pm UTC](https://discourse.processing.org/t/new-py5-release-0-10-3a1/45316 "2024-11-10T21:41:21Z")

</div>

py5 version 0.10.3a1 is now available! The big addition is a new Live Coding feature, enabling you to change the code of a running Sketch without needing to exit and restart. This works for py5 code in a Jupyter Noteb…

---

## [Harriss Spiral Py5](https://discourse.processing.org/t/harriss-spiral-py5/45286)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 1\
**Last updated:** [November 10, 2024, 9:25pm UTC](https://discourse.processing.org/t/harriss-spiral-py5/45286 "2024-11-10T21:25:03Z")

</div>

The following demo is a port of Harriss Spiral from Processing to Py5; a Thonny editor is required. Uses modified Turtle Graphics with recursion. # Reference for Turtle Graphics in Processing # https://gist.githubuserc…

---

## [How do I artificially introduce aliasing?](https://discourse.processing.org/t/how-do-i-artificially-introduce-aliasing/44903)

<div class="topic-metadata">

**Author:** [@LindowMan](https://discourse.processing.org/u/LindowMan)\
**Replies:** 1\
**Last updated:** [August 7, 2024, 5:09pm UTC](https://discourse.processing.org/t/how-do-i-artificially-introduce-aliasing/44903 "2024-08-07T17:09:23Z")

</div>

Hello I have always been fascinated with aliasing, and I am sitting with a project that implements aliasing as a deliberate aesthetical choice. I guess that it’s all about duplicating values, so I wrote this code that t…

---

## [New py5 release 0.10.2a0 and py5jupyter 0.2.1a0!](https://discourse.processing.org/t/new-py5-release-0-10-2a0-and-py5jupyter-0-2-1a0/44855)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [July 29, 2024, 3:17pm UTC](https://discourse.processing.org/t/new-py5-release-0-10-2a0-and-py5jupyter-0-2-1a0/44855 "2024-07-29T15:17:00Z")

</div>

Hello! There are new releases of py5 and py5jupyter. These are both small releases with a few bug fixes and enhancements. You can read more about it here: The summary is py5 now requires Python 3.9 and can work with n…

---

## [Py5 presentation at PyCon 2024](https://discourse.processing.org/t/py5-presentation-at-pycon-2024/44787)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 6\
**Last updated:** [July 23, 2024, 8:28pm UTC](https://discourse.processing.org/t/py5-presentation-at-pycon-2024/44787 "2024-07-23T20:28:54Z")

</div>

Here is the presentation I delivered at PyCon 2024, titled Creative Coding with py5, the Python version of Processing. Please watch the video and give it a thumbs up if you could! I was so grateful to sha…

---

## [Unable to Install DocumentListener On JTextArea\_py5](https://discourse.processing.org/t/unable-to-install-documentlistener-on-jtextarea-py5/44560)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 4\
**Last updated:** [June 13, 2024, 4:19pm UTC](https://discourse.processing.org/t/unable-to-install-documentlistener-on-jtextarea-py5/44560 "2024-06-13T16:19:05Z")

</div>

I’m unable to connect a DocumentListener to a JTextArea Swing component using the following source code (error message is below that). I should be able to see console print() output as text is entered into the textArea …

---

## [Swing Components in Default Processing Window\_py5](https://discourse.processing.org/t/swing-components-in-default-processing-window-py5/44482)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 19\
**Last updated:** [June 6, 2024, 6:10am UTC](https://discourse.processing.org/t/swing-components-in-default-processing-window-py5/44482 "2024-06-06T06:10:07Z")

</div>

To use Swing components in a default Processing window in py5 it is necessary to remove part or all of the canvas. By dropping the canvas down a little bit it is possible to use the top portion for Swing components and …

---

## [JavaFX in py5 demo](https://discourse.processing.org/t/javafx-in-py5-demo/44480)

<div class="topic-metadata">

**Author:** [@svan](https://discourse.processing.org/u/svan)\
**Replies:** 0\
**Last updated:** [May 24, 2024, 4:33am UTC](https://discourse.processing.org/t/javafx-in-py5-demo/44480 "2024-05-24T04:33:38Z")

</div>

The following source code demonstrates using JavaFX in py5 (Thonny editor). It is necessary to add javafx modules to a ‘jars’ folder in the same folder as the sketch. Javafx modules may be found at the following path s…

---

## [Importing a "Java Processing" library into py5](https://discourse.processing.org/t/importing-a-java-processing-library-into-py5/44444)

<div class="topic-metadata">

**Author:** [@Gof](https://discourse.processing.org/u/Gof)\
**Replies:** 21\
**Last updated:** [May 20, 2024, 9:56pm UTC](https://discourse.processing.org/t/importing-a-java-processing-library-into-py5/44444 "2024-05-20T21:56:01Z")

</div>

Hello, I’m a beginner and a new py5 user and I’m very enthusiastic about this new version of Processing. I read in the tutorial that you could use “Processing java” libraries with the camera3D example. Is it possible t…

---

## [Creative Coding with py5, the Python version of Processing](https://discourse.processing.org/t/creative-coding-with-py5-the-python-version-of-processing/44373)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [May 2, 2024, 10:56pm UTC](https://discourse.processing.org/t/creative-coding-with-py5-the-python-version-of-processing/44373 "2024-05-02T22:56:42Z")

</div>

Very happy to announce my now-scheduled PyCon talk, Creative Coding with py5, the Python version of Processing, for Saturday, May 18th at 4:15 p.m. If you will be at PyCon US in Pittsburgh later this month, please atten…

---

## [New py5 release 0.10.1a1](https://discourse.processing.org/t/new-py5-release-0-10-1a1/44187)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [March 30, 2024, 8:33pm UTC](https://discourse.processing.org/t/new-py5-release-0-10-1a1/44187 "2024-03-30T20:33:19Z")

</div>

Hello everyone! We wanted to let you know py5 release 0.10.1a1 went out earlier today. This is a small release with two new features and some bug fixes. Read more about it here: There is a new documentation page expl…

---

## [Py5 loves 3D (P3D, hints, shaders)](https://discourse.processing.org/t/py5-loves-3d-p3d-hints-shaders/43821)

<div class="topic-metadata">

**Author:** [@villares](https://discourse.processing.org/u/villares)\
**Replies:** 9\
**Last updated:** [February 8, 2024, 11:09pm UTC](https://discourse.processing.org/t/py5-loves-3d-p3d-hints-shaders/43821 "2024-02-08T23:09:45Z")

</div>

I think one can do almost anything that can done in Processing P3D with py5 (because it also uses P3D). Yesterday I was having a look at an example inspired by a conversation started by @hamoid, with additions from @GoT…

---

## [Numpy 2.0 release](https://discourse.processing.org/t/numpy-2-0-release/43855)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [February 8, 2024, 2:14am UTC](https://discourse.processing.org/t/numpy-2-0-release/43855 "2024-02-08T02:14:34Z")

</div>

The 2.0 release candidate of the Python library Numpy will be out soon (if not available already) and Python libraries that depend on it will need to make some small adjustments because version 2.0 will have some breakin…

---

## [New user \`update()\` function feature](https://discourse.processing.org/t/new-user-update-function-feature/43770)

<div class="topic-metadata">

**Author:** [@hx2A](https://discourse.processing.org/u/hx2A)\
**Replies:** 0\
**Last updated:** [January 27, 2024, 6:27am UTC](https://discourse.processing.org/t/new-user-update-function-feature/43770 "2024-01-27T06:27:33Z")

</div>

The next version of py5 will support a user update() function. This function will be called before each call to draw(). The purpose of this new update() function is to provide an opportunity to execute Python code in th…

[Next page](https://discourse.processing.org/c/a-version-of-processing-for-python-38-to-work-with-other-popular-python-libraries-and-tools-such-as-jupyter-numpy-shapely-trimesh-matplotlib-and-pillow-built-to-work-with-popular-python-libraries-and-tools-such-as-jupyter-numpy-shapely-etc/28.md?page=1)
