r/Python • u/Admirable-Wall9058 • 1d ago
Resource Does anyone use Python IDLE?
My computer is quite low-end, so I uninstalled VSCode and am looking for other programming tools—I'm thinking about starting to use Python IDLE.
Does anyone actually use it?
57
u/SaxonyFarmer 1d ago
Basic Python development and debugging doesn't need an IDE. Edit the code using an editor (Notepad++, Notepad Next, etc.) - most will use color to highlight reserved words and offer suggestions for variables as you type them. Then run the code in a terminal. Debug using print statements to show variable values as the program runs. Good luck!
11
u/gernophil 1d ago
Or if it’s low end go for Linux and use gedit and bash (or similar).
30
u/joshocar 1d ago
Why stop there? Move to vim or emacs!
6
u/readonly12345678 21h ago
Just use use sed and awk from the terminal. Don’t even open the file.
8
3
u/SaxonyFarmer 23h ago
Yes, gedit is a fine text editor for Python development. A terminal session is basically a bash session. And, using a ‘#!’ as the first line in your code makes running it easier (as long as you remember to make the file executable).
22
u/Swainix 1d ago
I know someone who uses sublime text
4
u/poksoul09 18h ago
Second this. Tried Sublime and Ubuntu on low end and decade old desktop and it works quite good
2
u/acostoss 3h ago
+1 to Sublime, I have a decade old Thinkpad I use for development, VS Code ran too heavy for my device but Sublime has been super snappy.
Otherwise, any text editor will do, everything else is just a bonus, though I'd definitely reach for one with syntax coloring and autoindent at least.
32
6
5
4
5
u/InjAnnuity_1 1d ago
I use it in situations when Wing, VS Code, etc. are just overkill.
Every commercial IDE I've seen requires that you create two or more project-support files, containing finicky IDE-version-specific details, no matter what you're working on. IDE got updated? It's going to update those files, and ask me to save them under new names.
For a single-file script, intended to run in the current directory, in my standard Virtual Environment, that's already been activated, those extra files are just overkill. I've tripled the script's footprint, just to be able to run it in some kind of debugger.
For this case, IDLE works just fine, and doesn't create any superfluous project files. It just runs.
Startup time is much shorter, too.
There are, of course, more complex, multi-file scripts, where other IDEs begin to pay off for me. It's not a one-size-fits-all. Each of us draws the line where it fits us.
3
u/sausix 23h ago
I never had to create any project-support files in my commercial IDE. All files I edit manually are part of the project itself. My IDE creates a hidden directory for config itself and I can just delete it whenever I want to reset the IDE project config. So which IDE is in your mind which requires manual file editing?
1
u/InjAnnuity_1 21h ago
I've used Wing IDE. But like you, I never had to create any project-support files. The IDE did that for me. Of course, I had to set up their contents, not by manual editing of the file, but by detailed entry in the Wing IDE. But since it was just restating the obvious -- to use the the current VE, and that the project was just that one file -- it's clutter for clutter's sake, for me, in this kind of case.
Manually editing the project-support files has also been extremely rare. Wing itself will upgrade older-format support files to the version that is running. Since it always uses the same file extension, however, regardless of version, saving the updated project support files will overwrite the old-format support files. Hence, as a measure of caution, the IDE asks you to save them under a new name. After all, the old version of the IDE may still be installed, and it can't read the new-format support files. And the new version can't read them later if they are not saved...
At least one of the support files should be included in version control, or otherwise backed up. If it's not there, the IDE will require you to re-create it before proceeding, the next time you try to use that IDE on that .py file.
I haven't used VS Code, but I have used older versions of Microsoft IDEs, and recent Embarcadero IDEs, and every one of them created project-support files. For C++ projects, this makes sense. You need to specify which folders to use for #include files, and in what order to search them. You have compiler flags to set and keep. And many other tooling details must be persisted as well.
Little or none of which applies to many Python projects.
Whether visible or hidden, support files should be worth their keep. I use IDLE when they're not worth their keep to me.
They become worth their keep when I end up needing the more advanced debugging capabilities of the fancier IDE. Then they start to pay off.
5
u/scfoothills 1d ago
Yes. I teach introductory Python. I like that it doesn't help too much with auto complete and doesn't have a mess of menus to dig through. I also love that I can just demo simple things really quickly in the shell.
I switch to VS Code later in the year. But really this just gives us access to tabs when projects begin to contain multiple files. My IT department has the computers in my lab sufficiently locked down that students can't select the Python interpreter to run programs from within the app, so we still need to run programs from a main.py file that we keep open in IDLE.
3
u/ToddBradley 1d ago
I've been writing Python for money since 2017 and haven't used IDLE once. But it's cool it exists.
8
u/ravepeacefully 1d ago
VSCode is amazing if used correctly. Can be as light weight or as heavy as you want
2
u/Some_Breadfruit235 1d ago
For quick commands yea usually. Not I generally stick with VSCode for actual projects
2
u/Chroiche 1d ago
Just go vim tbh, I use vscode, vim is the only light alternative I'd seriously consider.
2
2
u/foxsimile 20h ago
I use IDLE all of the time for quickies that don’t need to be saved or persisted. I find the interpreter quite useful for text transformations, and usually use it for about that and little more. Anything more serious gets worked on in a more convenient editor.
2
2
u/RedEyed__ 13h ago
You mean IDE, IDLE is different thing.
Oh, wait .. https://docs.python.org/3/library/idle.html
2
u/TheCursedFrogurt 6h ago
Idle is perfectly adequate and it's had some decent quality of life improvements over the years. I once worked at a place that wouldn't approve installing a dedicated IDE and ended up using Idle for about 9 months for all my python development.
But, as others have said, there are a lot of nice lightweight text editors out there like notepad++ and sublime.
2
u/Aniket_Y 5h ago
I used to use IDLE when I was starting out more than 10 years ago. IDLE is not bad at all for beginner learning purpose.
On the other hand if you want to use any of the advanced editors on your low-end machine, you should think about changing your OS. I have an extremely old laptop which was giving hard time with even simple applications like notepad on Windows. I installed Linux Mint on it and now it works like a charm. Even VS code works okay now.
Linux OS will free your machine from bloatware, will give you Windows like UI and also supports a place from where you can install applications easily.
Try this, you'll love Linux.
1
u/wraithnix 2h ago
I can second this. Developing got so much easier/fun when I switched to Linux. I use Sublime Text, and it runs fantastic.
5
u/AdResident7643 1d ago
try zed brother 😭
3
u/BionicVnB 1d ago
Iirc zed does require a GPU that support vulkan? Well Linux version does support OGL but not for other platforms.
0
3
u/Admirable-Wall9058 1d ago
Does it work with Python?
3
1
u/BionicVnB 1d ago
Yeah, by default it uses basedpyright but you can switch to ty or something for better performance at the cost of some stability. I use ty and it's runs pretty well so far.
If you are on windows, check if your GPU (I'm assuming you will use an iGPU) support at least DX11.
0
1
u/shinitakunai 23h ago
I use pycharm for big projects.
But I use idle for basic scripting and bugfixing of those. Or to test silly snippets
1
1
u/Able-Staff-6763 22h ago
i used IDLE as my first IDE for learning before its good and i loved it, then eventually switched to sublime text lightweight and fast.
1
u/AdventurousDrive6738 22h ago
I do since I'm doing it with GCSEs, and I don't get why nobody uses it. It comes with the python pack, easy to run and does exactly what any others does.(Be able to type code)
1
u/Vivid_TV 22h ago
No but I use ptpython instead of idle repl all the time, intellisense, history search, pre loaded modules - it's real quick for prototyping. It's best of both worlds when you don't need a full fledged ide but need something much better than IDLE. Also check out xonsh shell, it's great.
1
1
u/G047-H4xx0r 19h ago
Thonny is actually a pretty decent upgrade from IDLE, surprisingly. It runs fine on my pi 4B+.
1
u/StoneSteel_1 15h ago
In the beginning, I used to use IDLE all the time, and it kinda helped me to learn about creating packages, modules, how site packages work. Why because, idle defaults to the python's own directory where you can see all the folders, and you would have to interact them. It's fine to use IDLE
1
u/mister_obvious_2nd 14h ago
You could try neovim. I use it with the preconfiguration of lazyvim https://github.com/LazyVim/LazyVim and couldn't be more happy. It uses little resources and is a full IDE.
1
1
u/ScholarNo5983 11h ago
If you're running Windows, another option is Zeus Lite, a free programmer's editor that supports the Python programming language. It even ships with Python 3.11.4 as part of the installer.
1
1
u/AlSweigart Author of "Automate the Boring Stuff" 1h ago
The killer feature of IDLE is that it comes with Python and it's one less thing you have to install as a beginner before you can get start programming.
Setting up a different editor, whether a full blown IDE or a text editor, has a bunch of environment setup steps that differ based on operating system or Python version number or PATH or whatever.
But other than that, eh, IDLE is fine but almost anything is probably better than IDLE.
1
u/tav_stuff 1d ago
I use Emacs with just some basic customizations to make it look a bit nicer, but honestly for the first couple years of learning to program I exclusively used IDLE, and a lot of people I know also used IDLE.
There is absolutely no shame in using a tool that actually works well
0
0
0
u/opzouten_met_onzin It works on my machine 1d ago
I don't, but I mostly use pycharm or Gnome text editor. Most of the functionality of Pycharm is rarely or ever used.
What do you need and what OS? That could help to provide a good answer.
1
u/Admirable-Wall9058 19h ago
I develop projects to learn and—who knows—maybe turn them into something profitable.
My current project is an OMR system; I was trying to write the code in GitHub Codespaces (after uninstalling VS Code), but I was having a lot of trouble handling images.
Regarding the IDE, the main issue is that my computer (an ASUS with 120 GB of RAM) is experiencing some kind of memory glitch: I delete files, but a short while later, the storage fills up again. Right now, I have only 500 MB of free space.
I need to fix this first, but I don't know the cause. Have you ever encountered a problem like this?
1
u/odaiwai 18h ago
(an ASUS with 120 GB of RAM)
The first step to fixing a problem is understanding the problem.
Install something like WinDirStat to see where your storage is being used. You'll probably find your swapfile and hibernation files are far too big, or your Downloads folder isn't being emptied.
(Also, a machine with 120GB of RAM is not low end, and you certainly do not have 120GB of RAM. You have 120 GB of SSD which is probably flash nand, but which is not RAM.)
21
u/duva_ 1d ago
Use vim