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.
- 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
- Clone the repository: git clone https://github.com/sksum/pythontutor-plus.git
- Install the dependencies: pip install -r requirements.txt
- Run the development server: python3 bottle_server.py
- Visit http://localhost:8080 in your web browser to access the tool
- 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
We welcome contributions to PythonTutor-Plus. If you would like to contribute, please fork the repository and submit a pull request.
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.