IDLE vs Leo Editor
When comparing IDLE vs Leo Editor, the Slant community recommends IDLE for most people. In the question“What are the best Python IDEs or editors?” IDLE is ranked 35th while Leo Editor is ranked 39th. The most important reason people chose IDLE is:
For short scripts, a heavyweight IDE just gets in the way. It's also easier for beginners to understand.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro Sometimes simple is best
For short scripts, a heavyweight IDE just gets in the way. It's also easier for beginners to understand.
Pro Written in pure Python/tkinter
You can dig in and change how it works.
Pro Included in standard Python distributions
You probably already have it.
Pro Debugger
It has one.
Pro Outlines - better than folding
With outlines functions and classes can be arranged and grouped with their logical neighbours, even nested. Whole branch hierarchies can be expanded and collapsed in a single key stroke, or moved from this spot to that, as best fits the thinking or troubleshooting of the day. Outline trees make navigation across broadly different areas an effortless exercise. See your whole project in a single view, across any number of external files and modules.
Pro Internal command line
All Leo editor commands are available in a command bar, called a "mini-buffer", that feature tab-completion and command history. For example "Find all nodes containing phrase '...', clone them, and paste in a new tree" is a simple alt-x
, clone-find-flattened
(or cff
) away. As is toggle-split-direction
, expand/contract-log-pane
and execute-script
.
Pro Clones - when two or three or ... are better than one
Leo's unique concept of 'clones' means you can re-arrange sections of an external file to suit your way of thinking or tacking a specific issue without changing the organization of the source. This makes it a great tool for studying code from others, and perhaps contributing back to them without changing your or their preferred arrangement methods.
Cons
Con No Tabbing for Files or Shell instances
Idle's Interactive Python Shell and the Python Text Editor are separate window applications. Many would expect them to be unified together within a single window. To create a python program file, or module, the user first opens Idle (It's Interactive Shell), then the user goes to [File] and [New File] to open the Idle Text Editor. Plus, every time a new python file is opened, a new instance of Idle runs separately. So, there are no tabbed modules. That's clumsy approach that adds the complexity of juggling around many Idle instances.
Con A different way of thinking means learning
There's no other code and text editor quite like Leo, so expect to put in some time learning. It can take some trying this and that before the "Aha!"s start to roll in. It's experiential.