Skip to content

Python Tutor Extension: Additional features include bytecode execution and evaluation stack visualization

License

Notifications You must be signed in to change notification settings

sksum/pythontutor-plus

Repository files navigation

PythonTutor-Plus

PythonTutor-Plus is an enhanced version of the popular Python Tutor tool, which allows users to visualize the execution of Python code. This tool is particularly useful for learning and understanding how Python code works, as well as for debugging and troubleshooting.

Features

  • Visualize the execution of Python code in a step-by-step manner
  • See the values of variables and the state of the stack at each step
  • Support for Python 2 and 3
  • User-friendly interface
  • Support for large code snippets
  • Ability to run code with command-line arguments
  • Support for custom test cases

ezgif com-gif-maker image

Getting Started

  1. Clone the repository: git clone https://github.com/sksum/pythontutor-plus.git
  2. Install the dependencies: pip install -r requirements.txt
  3. Run the development server: python3 bottle_server.py
  4. Visit http://localhost:8080 in your web browser to access the tool

Usage

  • Enter your Python code in the text box provided
  • Click the "Visualize Execution" button to run the code and visualize the execution
  • Use the "Previous" and "Next" buttons to step through the code and see the values of variables and the state of the stack at each step

Contributions

We welcome contributions to PythonTutor-Plus. If you would like to contribute, please fork the repository and submit a pull request.

License

PythonTutor-Plus is released under the MIT License. See the LICENSE file for more information.

This tool is based on python-tutor created by Philip Guo in January 2010. See project history.

About

Python Tutor Extension: Additional features include bytecode execution and evaluation stack visualization

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published