Python Tutor -- http://pythontutor.com/ -- helps people overcome a fundamental barrier to learning programming: understanding what happens as the computer executes each line of a program's source code. Using this tool, you can write Python, Java, JavaScript, TypeScript, Ruby, C, and C++ programs in your Web browser and visualize what the computer is doing step-by-step as it executes those programs.
This tool was created by Philip Guo in January 2010. See project history.
List of unsupported features and known bugs
The latest development version of the code is in v5-unity, although lots of legacy documentation still resides in v3.
BY FAR the most preferred way to use Python Tutor is via the official website, since it contains the latest updates: http://pythontutor.com/
You can use iframe embedding to easily embed visualizations on your webpage.
If you want to run locally on your own computer, to run Python visualizations try:
pip install bottle # make sure the bottle webserver (http://bottlepy.org/) is installed
cd OnlinePythonTutor/v5-unity/
python bottle_server.py
You should see the visualizer at: http://localhost:8003/visualize.html
... and the live programming environment at: http://localhost:8003/live.html
However, it can be hard to run your own visualizer locally for non-Python languages, since there are complex dependencies in v4-cokapi/ that I haven't yet cleanly packaged up. By default, the local version you run will call my own server to run the non-Python backends, so please be mindful of your bandwidth usage.
Note: I can't provide technical support for users who want to install Python Tutor on their own computers/servers (read details here).
For further directions, see Overview for Developers or explore the rest of the docs.
For code or security contributions:
For user testing and feedback from instructors' perspectives:
... and many, many more!
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。