In Processing Python canvas does not automatically close after run for the second time

I am runnung code in Python Processing.
Then I make changes.
I am running again.
The previous canva is still there. And I also can see the current canva.
How can I get rid of old canva?

If I run Java Processing. I see only one canva with latest changes.

I use Python Mode for Processing 4
processing-4.3

1 Like

Hi Elena!

As far as understand, Python mode in Processing 4 is broken :frowning:
Please try v3 in Processing IDE 3.5.4 if you must use it.

Otherwise, you might also want to try py5.

2 Likes