Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python IDLE freezes

This is absolutely frustrating, but I am not sure if the following is an issue only on my machine or with IDLE in general.

When attempting to print a long list in the shell, and that could happen by accident while debugging, the program crushes and you have to restart it manually.

Even worse, if you have a few editor windows open, it always spawns a few sub-processes, and each of these has to be manually shut down from the task manager.

Is there any way to avoid that?

I am using Python 3, by the way.

like image 512
ooboo Avatar asked Apr 07 '26 10:04

ooboo


1 Answers

The Squeezer extension addresses this problem. Instead of displaying the long text (which is the source of the slow-down), Squeezer captures the output and displays a button instead. You have the option of expanding the contents or viewing it in Notepad.

Squeezer is included in IdleX, which you may find useful.

like image 178
Roger Avatar answered Apr 09 '26 00:04

Roger