Embeddable Python Charts

Based on some great feedback and requests on our interactive Python Trinkets, today we’re releasing two Python Trinket features: data visualization and interactive animations.  We can’t wait to see how you use these Python charts in class.

Ben Wheeler, our Lead Engineer, is on fire.  He built out our new interactive Python charts in just one week. Inspired by Pygal and using the same syntax, you can now create beautiful and simple charts on any web page using data in simple Python lists.  As an example of this new feature, check out this pie chart of the most popular coding languages from CodeEval for 2014. By the way, Python has been on top for 3 years running now:

In class, students can edit this code or plot their own data with line charts, bar charts, or time series. We’ve put together a sample workshop, Charting Data with Python, that highlights a few of the available charting options.

Not only was Ben able to integrate charting but he also made Brad Miller’s experimental support for the Processing.js library available in our existing Python Trinkets. This version of Processing lets students create interactive animations and visualizations. We’ve included a simple example Brad made to get you started. This is relatively uncharted waters for interactive, editable visualizations, so we’d really like to see what you do with these tools!

At Trinket, our goal is to keep bringing you the tools you need for your teaching. We’ve listened to your feedback and we believe this raises the bar to a new level. Creating your own charts is as simple as our other interactive Python tools. Take a look at the Pygal chart types to see what is supported. Let us know what you think and bring charting and analysis skills into your classroom!

Python Charts: CodeEval Popular Coding Languages

One thought on “Embeddable Python Charts

Comments are closed.