SoFunction
Updated on 2024-11-21

Recommended IDE editor thonny ideal for Python beginners

If you search in search engines (e.g. Baidu) or various Q&A communities (e.g. Zhihu) Which is the best IDE/editor for learning Python?

I think the answer is definitely: PyCharm, Jupyter, VSCode, Vim, Sublime Text

However, in my opinion, the best editor should depend on the situation, such as

If you are engaged in data analysis, machine learning, recommended that you use Jupyter

If you are engaged in large-scale engineering projects, often have to read the code of open source projects, we recommend that you use PyCharm

If you need to use multiple editing languages and don't like to use the cracked version of JB's software, we recommend you to use VS Code.

If you're a geek, then Vim is the way to go.

In addition to this, there are many excellent Python code editors, such as Sublime Text, Atom, Wing, Spyder, and many others.

But the IDE I'm going to introduce today is one you most likely haven't used, or more likely haven't even heard of, and it's calledThonny, which was developed by Tartu University, is suitable for novice programmers. Its interface is easy to use without any complexity or extra features. Another thing that makes it suitable for novices is that you can see how Python evaluates your expressions at each step.

I recommend all new Python users to install Thonny.

The reasons are as follows:

  • It supports all platforms (Windows, Mac, Linux)
  • It supports Simplified Chinese, which is very friendly to students with poor English.
  • It has a clean and straightforward interface, with built-in features that are all completely newbie-oriented
  • It comes with Python 3 built-in, eliminating the need for newbies to install Python and configure the environment.
  • Its debugging interface is very intuitive and beats 90% of the editors on the market.
  • The fact that it offers debugging modes with less granularity than lines of code is one of its shining points
  • It supports syntax highlighting, which should be basic functionality
  • It supports code completion (only unfortunately not automatically, but manually)
  • It comes with a very simple and easy to use graphical package manager.

Here is a demonstration of each of them

1. Platform-wide support

Whether you're using Win, Mac, or Linux, Thonny has a version that supports it.

The Win and Mac versions of the installer, which I have packaged up, can be downloaded here:/iX5rWlvkdfa

For Linux users, the command to install

# Binary bundle for PC (Thonny+Python):
$ wget -O - /installer-for-linux)

# With pip
$ pip3 install thonny

# Debian, Raspbian, Ubuntu, Mint and others:
sudo apt install thonny

# Fedora
$ sudo dnf install thonny

2. Support for Simplified Chinese

Thonny is developed by foreigners, but it currently supports Simplified Chinese, which is really a blessing for beginners who don't speak English well.

You'll be prompted to make a language selection during your installation.

If you forgot to set it during installation, it is again possible to change it twice in the menu bar.

3. Built-in Python

For newbies, the most important thing is to be able to have an environment to run code in as soon as possible

Thonny has Python 3.7.9 built in, so it doesn't require you to go to the official website and download the Python interpreter or learn how to configure environment variables.

By looking at the path to the os module, you can see where this Python installation is located

Of course, if you think Python 3.7 is outdated and you want to use the latest Python 3.9, you can set that up too!

4. Simple interface

The entire interface of the software is very simple, and it can be said that there is not a single redundant feature, and there are not a single feature that should be there.

Open a test Python script and run it by clicking the Run button in the upper-right corner. What's printed in the program is printed in a Shell window, and it's easy to see from the interface that when you click the Run button, you're actually executing a line in the Shell window.%Run of the magical command.

5. Visual package manager

It also comes with a visual package manager that makes it easy for newcomers to install and uninstall Python's third-party packages.

6. Manual code completion

As a simple IDE, Thonny also supports code completion, which is not so smart and needs to be triggered manually by pressing the shortcut key (⌃ + s).

7. Amazing seat-of-the-pants debugging features

If that's not enough to get you excited, don't worry, let me introduce you to Thonny's most amazing debugging features.

Bring up the Variables panel from the menu bar. Variables that you have defined in Shell will be displayed in the Variables panel, and the Variables panel will be refreshed in real time once you make changes to the variables.

By clicking on the little beetle on the control panel, you enter debug mode, and the four buttons next to the beetle light up along with it, which are

  • Step Over: Single-step debugging in terms of lines of code.
  • Step Into: Single-step debugging at a finer level of granularity than step through, with access to the function
  • Step Out: Execute to the end of function execution.
  • Resumption of execution: Execution to the end of the program

Gee, I'm sure you're saying, Ming, don't be a headliner, aren't all these features available on PyCharm?

Don't worry. Read on to see how step-by-step debugging in Thonny achieves a debugging experience that even PyCharm hasn't yet made so easy for newcomers to learn.

It can take a single line expression, split into multiple steps for debugging, in the process, the expression of the variable name will be directly displayed as its value, which is very helpful for newcomers to understand the complexity of the single line expression is very helpful.

See this moving picture, below, for more details.age <= 3 This expression displays the value of the age variable, then performs a logical operation with 3, and then displays the result of that operation.

When you step into a function call, each step of the function reopens a new window with a separate table of local variables and a pointer to the code, which can help the learner fully understand the principles of function calls, especially for understanding relatively complex logic like recursion.

Here's an example of a function that generates the Fibonacci series

Step debugging in Thonny can be said to be one of its major highlights, but unfortunately Thonny currently does not support setting breakpoints, which is a pity.

8. List of shortcuts

Windows shortcuts

Mac shortcuts

9. Write at the end

Taken from Python, with Python, Thonny is based on Python built-in graphical library tkinter developed a visualization tool , it is completely oriented to Python beginners lightweight Python IDE, which can help beginners to understand the details of each line of code , it helps white people to solve a number of complex environmental issues , really do to get the that is to learn.

In my opinion, the best IDE for Python beginners and recommended.

Thonny Download link:https:///softs/

Above is the recommended Python white ideal IDE editor thonny details, more information about Python white editor thonny please pay attention to my other related articles!