Python Tutor Code Visualizer

Free

by Python Tutor

Provided by Python Tutor

Not yet rated
Platform
Web
Pricing
Free
Account required
No
Ads
Moderate
Last verified
3 hours ago
Developer
Python Tutor
Official URL

Overview

Python Tutor is a free website that runs your code and draws what happens at every step. Press Visualize and you can move forwards and backwards through each executed line, watching variables, function frames on the stack, and objects on the heap change as the program runs.

Despite the name it also handles Java, C, C++ and JavaScript. It is aimed at students learning to program and the teachers who explain it: lists, dictionaries, classes, recursion, pointers and aliasing are drawn as boxes and arrows, which makes ideas like references and shared objects much easier to see than in a normal debugger.

Nothing needs to be installed and there is no sign-up. Code runs for up to about 10 seconds per visualization, so it is meant for short teaching examples rather than real projects. The site is supported by donations and shows Google ads on the visualizer page.

Features

  • Step-by-step visualization of Python, Java, C, C++ and JavaScript code
  • Slider to move forwards and backwards through every execution step
  • Shows call-stack frames, local variables and return values
  • Draws lists, dicts, tuples, sets, objects and pointers as boxes and arrows
  • Visualizes recursion, exceptions, closures, generators and class inheritance
  • Supports input() with a panel that remembers the values you typed
  • Choice of Python 3.11 or Python 3.6, modern Java, and C17 or C++17 with GNU extensions

Privacy

See the official privacy policy.

Pros & Cons

Pros

  • Free and runs in the browser with nothing to install
  • No account needed
  • Makes references, aliasing and recursion easy to see
  • Covers five languages commonly taught in intro courses

Cons

  • Runs are capped at about 10 seconds, so only small programs work
  • Ads appear on the visualizer page
  • Older versions such as Python 2.7 and Java 8 are marked unsupported

Community Reviews (0)

No written reviews yet — be the first to rate this tool.

Similar Tools

  • Code Playgrounds · JSFiddle

    An online code editor and playground for HTML, CSS, and JavaScript.

    Not yet rated
    Freemium Web
  • Code Playgrounds · CodePen

    A social code playground for front-end code.

    Not yet rated
    Freemium Web
  • Code Playgrounds · JS Bin

    A collaborative JavaScript, HTML, and CSS playground.

    Not yet rated
    Open Source Web
  • Code Playgrounds · PlayCode

    A fast online JavaScript playground with live preview.

    Not yet rated
    Freemium Web