process.getInputStream() is Buffered and blocks print() from Python code

Hi @svan,

I got this working with Windows as well.

Hardest part was finding the executables… but revealed a real mess with multiple installs on my system that I cleaned up. < Topic for another day!

I could not get ControlP5 working and just wrote simple code for detecting keypresses. This sidetracked me and did not need this import in my code.

Some feedback:

  • Change subject of topic since it is adequate
  • Python code could have been simple and proof of concept.
  • Format your code snippets so they are readable.
    It was not easy for me to read.

I asked ChatGPT to clean it up:

As the AI suggests, we need to add flush=True to print() calls in py5 — for example:
print("Hello py5 world!", flush=True)
This ensures the output appears as expected.

Good use of AI in this case to scrutinize your code and provide formatting tips.

Good topic!

Update
Thank your for making the changes!

:)