Skip to main content

An interface to run Phillip Guo's Python Tutor

Project description

Generate traces via Python Tutor locally (and visualize them in browser)

Usage:

```
from pytutor import generate_trace

modules = {'helper': 'foo = 1'}
setup_code = "y = 4"
trace = generate_trace.run_logger('x = 1 + y' , setup_code , modules)
trace_dict = json.loads(trace)

# To visualize in browser
# from pytutor import server
# server.run_server(trace)
```

More info:
https://github.com/okpy/pytutor

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytutor-0.1.tar.gz (25.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page