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

**URL:** <https://discourse.processing.org/t/in-processing-python-canvas-does-not-automatically-close-after-run-for-the-second-time/45047>\
**Category:** Processing.py\
**Created:** [September 14, 2024, 7:17pm UTC](https://discourse.processing.org/t/in-processing-python-canvas-does-not-automatically-close-after-run-for-the-second-time/45047 "2024-09-14T19:17:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elena](https://avatars.discourse-cdn.com/v4/letter/e/278dde/32.png) [@Elena](https://discourse.processing.org/u/Elena)\
**Post date:** [September 14, 2024, 7:17pm UTC](https://discourse.processing.org/t/in-processing-python-canvas-does-not-automatically-close-after-run-for-the-second-time/45047/1 "2024-09-14T19:17:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)\
**Post date:** [September 15, 2024, 2:15am UTC](https://discourse.processing.org/t/in-processing-python-canvas-does-not-automatically-close-after-run-for-the-second-time/45047/2 "2024-09-15T02:15:56Z")

</div>

Hi Elena!

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

Otherwise, you might also want to try [py5](https://abav.lugaralgum.com/como-instalar-py5/).
