Fork me on GitHub

Our new Python console

by Elliott Hauser

20 Jan 2014

Thanks to Grant's awesome work on pull request #122, we now have sweet python consoles available to us- and not just on the console page. Check a runnable version of Zach's Zuperman code:

To include a console in your own posts, you'll need two 'include' statements:

{% include python %}

{% include endpython %}

It's as easy as that! Behind the scenes, those include statements are pulling in code that Grant wrote that loads everything we need for one of these consoles. Awesome!

Note that only one console per page will work for now.

Happy coding!

Elliott Hauser is a PhD Student in information science at UNC Chapel Hill. He's hacking education as one of the cofounders of Trinket.io. Find Elliott Hauser on Twitter, Github, and on the web.
comments powered by Disqus