Online Python Interpreter

NB - if Python is not working, please make sure that you are connected over HTTPS.

Made by Boyan Tabakov ;)

Also, if you need some beginner Python tutorials, I made some.

Code Editor:




Terminal:

What is this platform?

This is an online Python editor and interpreter, running code directly on your device through the PyScript module. It is optimized for speed and efficiency and supports file uploads. This is the first version of the platform. What’s more impressive is that you can execute native Python 3 code. There's no need for MicroPython or Emscripten to process your code; instead, you can run it directly on your machine without relying on an external server. Essentially, you have full Python 3 support without limitations—except for the effort it took to develop this tool!

How do you use it?

Simply click on 'Run Code' in Regular Python mode, and your code will be executed in a complete Python environment.

What powers this platform? How can I build something similar?

To get started, you might want to explore the Beginning PyScript guide, which outlines everything needed to start using PyScript. Additionally, to avoid common pitfalls, I recommend installing XAMPP early on. This can help prevent errors such as 'my code won’t run,' which was one of the challenges I faced.


If you're looking for a broader understanding, the main thread that runs MicroPython is initialized as soon as you access the page. When you click a button (e.g., Regular Python mode), the main terminal is swapped for a worker terminal, which executes Pyodide, the web-based Python interpreter you’re familiar with.

Could this be improved with CSS?

I’ll admit, I’m not a CSS expert, and there’s definitely room for improvement. However, for now, the design is functional and visually acceptable. I plan to enhance the aesthetics in a future release of the Online Python Interpreter.

Why did I create this?

There’s a bit of a story behind this project. I noticed that many students learning Python were forced to use ad-laden websites, with pop-ups in every corner, which was frustrating. I wanted to create a cleaner, ad-free alternative. This project also served as a personal challenge to hone my skills. Rest assured, improvements and more user-friendly features are on the way.