Skip to content

A New Open Source Project: Automatically Generated Visual Animations of Python, for CS Educators

License

Notifications You must be signed in to change notification settings

beezow/TeachDotPy

Repository files navigation

teach.py

A new open source project built for the Open Source Challenge of HackIllinois 2019 by Charles Agriogianis, Andrew Fei, Maxwell Jong, Albert Li, Theodore Li, and Drew Zoghby.

Running teach.py

For command line arguemnts

./teach --help

To run on linux

./teach script_to_animate.py

Currently no jar for windows so must be run through Processing IDE

About teach.py

For many beginners, visualizing code is often difficult and intimidating. Computer science concepts such as lists, loops, and queues can be very confusing. teach.py is developed primarily with educators in mind to better demonstrate these fundamental ideas. teach.py parses Python code and translates it into visual representations, creating meaningful and powerful images and animations.

Implementation

We created teach.py in two parts: code analysis and animation generation. Native Python files are first parsed line by line, and custom logs are inserted into the script. Running the edited script produces a custon JSON populated with important events and information about the code. We then use Processing to create meaningful visualizations of the JSON data. Our program then visualizes the relevant data structures and modifications, resulting in an enriching animation and powerful tool for educators.

About

A New Open Source Project: Automatically Generated Visual Animations of Python, for CS Educators

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6

Languages