Processing 4+ — what can go wrong and which path to choose?

The course recommendation (November 2026):
for students in grades 5–8 we recommend Thonny + the py5 add-on (instructions). The add-on downloads Java by itself, and all Python libraries work in py5, including pyserial for the micro:bit. Processing 3.5.4 with Python Mode is only a backup option for old sketches. The official status of Python Mode: Processing wiki.

Lesson 15 of 17 · MicroPython and micro:bit

Recommended choice: Processing 3.5.4 and older, or py5


If you work with the micro:bit, serial communication and graphics, it is important to know that Processing 4+ can cause problems in Python Mode.

This does not mean that Processing 4 is bad, but that Python Mode in it has become unstable for some projects, especially when you use libraries such as:

  • serial communication
  • the sound library
  • some additional libraries
  • old tutorials based on Python Mode
Important:

Students often think they have made a mistake in the code, when in fact the problem is the version of the Processing environment or the compatibility of the libraries.

Two realistic options


In practice there are two good paths:

Option 1 — go back to Processing 3.5.4 or older


This is the best choice if you want:

  • to use the existing Python Mode tutorials
  • students to see the same code as in older examples
  • to avoid problems with newer Java versions
  • to work with fewer settings
When is this the best solution?

If the goal of the lesson is for students to run an example successfully and quickly, without fighting with installation and compatibility, Processing 3.5.4 or older is the safer path.

Option 2 — switch to py5


py5 is a more modern solution that uses:

  • standard Python 3
  • Java 17 or 21
  • more modern libraries
  • more stable work with serial communication

This is the better choice if you want students to work in an environment that is closer to modern Python programming.

A practical dilemma for students:

If you want to get a result as soon as possible and stay with the old tutorials, choose Processing 3.5.4 or older. If you want a more modern Python approach, more freedom and a longer-term solution, choose py5.

Option 1: Installing Processing 3.5.4 on Linux (Zorin, Ubuntu, Mint)


Besides py5, many school projects also use Processing 3.5.4, especially for Python Mode and micro:bit communication.

This version is stable and often better for working with:

  • serial communication
  • micro:bit projects
  • Python Mode (the old Processing Python system)
Important:

Processing 4.x has problems with Python Mode and the Jython environment. That is why for school projects we recommend:
  • Processing 3.5.4 (a stable Python Mode)
  • or switching to py5 (a more modern alternative)

1. Downloading Processing


First download Processing 3.5.4 from the official page:

https://processing.org/download

Choose the Linux version (a .tar.gz file).

A tip for students:

The file usually goes into the Downloads folder. Do not open it straight from the browser — extract it first.

2. Where to extract it?


On Linux it is best for Processing to be in a simple directory. Recommendation:


/home/user/programs/

Example:


/home/student/programs/processing-3.5.4/
Why here?

  • it is easy to find
  • it does not require root permissions
  • it does not mix with the system files

3. Extracting


Right-click the file:

  • Extract Here

or in the terminal:


cd ~/Downloads
tar -xvzf processing-3.5.4-linux64.tgz

Then move the folder:


mv processing-3.5.4 ~/programs/

4. Starting Processing


Go to the folder:


cd ~/programs/processing-3.5.4

Then run:


./processing

If it does not work right away, first allow it to be executed:


chmod +x processing
If it opens as text:

That means Linux has not recognised the file as a program. Solution:
  • right-click → Properties
  • tick "Allow executing file as program"

5. Creating a desktop shortcut (start with a DOUBLE CLICK)


So that students can start Processing as on Windows, make a desktop shortcut.


nano ~/Desktop/Processing-3.5.4.desktop

Paste:


[Desktop Entry]
Name=Processing 3.5.4
Comment=Processing IDE for MicroPython projects
Exec=/home/student/programs/processing-3.5.4/processing
Icon=/home/student/programs/processing-3.5.4/lib/icons/pde-256.png
Type=Application
Terminal=false
Categories=Development;

Then:


chmod +x ~/Desktop/Processing-3.5.4.desktop
If the icon is not visible:

On Zorin click:
  • Right-click → Allow Launching

6. An important note about Python Mode


Processing 3.5.4 uses the old Python Mode (Jython). That means:

  • it does not use Python 3
  • it does not use pip packages
  • it has limitations compared with py5
A conclusion from practice:

  • Processing 3.5.4 → the best for simple serial + micro:bit
  • py5 → the best for modern Python + graphics + extended projects

7. Checking that everything works


In Processing open Python Mode and try:


def setup():
    size(400, 400)

def draw():
    background(200)
    ellipse(200, 200, 50, 50)

If a window appears — the installation was successful.


A recommendation for school:

If students are just starting:
  • Processing 3.5.4 → an easier start
  • py5 → the next level (modern Python + a Java engine)

How is the coding different?


In Processing 4.2 Python Mode students write code that looks like this:


add_library('serial')

from processing.serial import *

def setup():
    size(600, 400)
    print(Serial.list())

The code in py5 looks different:


import py5

def setup():
    py5.size(600, 400)
    py5.background(240)

py5.run_sketch()

The biggest difference is that py5 uses real Python 3, while Processing Python Mode uses Jython.

What does that mean in practice?

In py5 you can use:
  • normal Python packages
  • pyserial
  • numpy
  • modern libraries for data processing
In Processing Python Mode libraries and compatibility can be limited.

A difference in the way of thinking


In Processing 4.2 Python Mode students mostly work in an older, more closed system that is tied to the Processing IDE.

In py5 students work in a real Python 3 environment, so they move on more easily to:

Processing 4.2 Python Mode py5
Jython Python 3
Problematic compatibility with some libraries Much wider support for Python packages
Less recommended for new projects Recommended for modern projects
Close to old tutorials A better long-term solution

A conclusion for students:

If your goal is to follow the old lessons and get a result quickly, choose Processing 3.5.4 or older. If you want a modern Python approach and fewer problems with libraries, choose py5.