🐍 Python Error Explainer
Python Error Explainer watches your terminal, detects Python errors the moment they occur, and opens a clean side panel that explains what went wrong and why — in language a beginner can understand. It does not fix your code. That part is yours. Why this existsWhen you're learning Python, the biggest enemy is not the error — it's not understanding what the error is telling you. Most beginners either:
This extension gives you a third option: read a human explanation, think about it, and fix it yourself. That's how you actually learn. How it works
Everything runs locally on your machine. No internet. No API keys. No data sent anywhere. InstallationStep 1 — Install the extensionSearch for Python Error Explainer in the VS Code Extensions panel and click Install. Or install from
Step 2 — Install Ollama (one time only)Download from ollama.com and install it for your OS (Windows, Mac, or Linux). Step 3 — Download the AI model (one time only)Open any terminal and run:
This downloads a ~2.3 GB model to your computer. It only needs to happen once. Step 4 — You're doneOpen VS Code. Run your Python code. The extension will automatically explain any errors you encounter. UsageOnce set up, the extension works automatically. There is nothing to click.
CommandsOpen the Command Palette (
SettingsGo to File → Preferences → Settings and search for
Changing the AI modelDifferent models have different strengths and sizes. To switch:
Model comparison
Troubleshooting"Setup Required" panel keeps appearingOllama is not running. Open a terminal and run:
Ollama should auto-start on system boot after initial install. If it doesn't, you can add it to startup programs. "Model Not Found" panel appearsYou need to pull the model. Run:
Panel appears but explanation is emptyThe model may still be loading (first request after boot takes longer). Wait 10 seconds and trigger another error. Extension seems stuck / not respondingOpen the Command Palette and run Python Error Explainer: Toggle On/Off twice to reset it. Error in a library (not your code)If the traceback points to a file inside Project structure (for developers)
Building from source
To run in development:
To package:
PhilosophyThis extension is intentionally designed with one constraint: it explains, it never fixes. The explanation panel has no "Apply fix" button. No suggested code. No one-click solution. You get a plain English description of what went wrong and where to look. This is not a limitation — it is the entire point. The moment you understand an error yourself and fix it, it stops being a mystery. The next time you see it, you'll recognize it immediately. That accumulation of recognized patterns is what coding fluency actually is. LicenseMIT |