Cette page est affichée en anglais. Une traduction française est en cours.
ConfigsJun 1, 2026·3 min de lecture

Thonny — Python IDE for Beginners

Thonny is a lightweight Python IDE designed for learning programming, featuring a simple interface with step-through debugging, variable inspector, and syntax error highlighting aimed at first-time programmers.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Established
Point d'entrée
Thonny Overview
Commande d'installation directe
npx -y tokrepo@latest install 7c4195b3-5d50-11f1-9bc6-00163e2b0d79 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

Thonny is a Python IDE developed at the University of Tartu specifically for teaching and learning programming. It provides a clean, distraction-free interface with powerful debugging tools that visualize program execution, making it easier for beginners to understand how their code runs.

What Thonny Does

  • Provides a simple code editor with Python-specific syntax highlighting
  • Offers step-through debugging that visualizes expression evaluation order
  • Displays variables and their values in real-time as code executes
  • Manages Python packages through a built-in graphical package manager
  • Supports MicroPython and CircuitPython for microcontroller programming

Architecture Overview

Thonny is built with Python and Tkinter for cross-platform GUI support. It communicates with Python interpreters through a custom backend protocol that provides enhanced introspection beyond standard debugger interfaces. The architecture separates the editor frontend from the interpreter backend, allowing connection to local, remote, or embedded Python runtimes.

Self-Hosting & Configuration

  • Download standalone installers for Windows, macOS, and Linux from thonny.org
  • Comes pre-installed on Raspberry Pi OS for educational use
  • Bundled with its own Python interpreter (no separate installation needed)
  • Configure interpreter paths to use system Python or virtual environments
  • Settings accessible via Tools > Options with sensible defaults for beginners

Key Features

  • Expression evaluation visualization shows how complex expressions reduce step by step
  • Call stack view shows function calls with local variable scopes
  • Heap view visualizes object references and memory layout
  • Built-in pip GUI for installing packages without command-line knowledge
  • Support for Raspberry Pi Pico, BBC micro:bit, and ESP32 via MicroPython

Comparison with Similar Tools

  • IDLE — Python's built-in IDE, fewer debugging visualizations
  • VS Code — Powerful but complex for absolute beginners
  • PyCharm — Feature-rich IDE but overwhelming for first-time programmers
  • Mu Editor — Simple Python editor for beginners, fewer debugging features
  • Jupyter Notebook — Cell-based interface, different paradigm from traditional coding

FAQ

Q: Is Thonny only for beginners? A: While designed for learning, Thonny is a capable editor for scripts and small projects. Advanced users may outgrow it for large codebases.

Q: Does Thonny work with virtual environments? A: Yes. You can configure Thonny to use any Python interpreter including those inside virtual environments.

Q: Can I use Thonny for MicroPython development? A: Yes. Thonny has built-in support for uploading and running code on MicroPython boards including Raspberry Pi Pico and ESP32.

Q: Is Thonny suitable for classroom use? A: Yes. It is widely used in CS education due to its low setup friction, bundled interpreter, and debugging visualizations that help students understand program flow.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires