Put Interactive Python on Any Page

We are excited to announce the release of a new tool that lets anyone embed Interactive Python on their own blog or web site. This technology has been available in Trinket from the beginning and starting today you can use it for free and without signing in. We’ve seen over and over how the interactivity of this tool increases engagement with students and we hope you’ll try it out in your own teaching.

Take a look at the example below to see it in action. Click Result to watch it run. Click back over to Python and make some changes. You’ll be able to immediately see your changes by clicking back over to Result!

Continue reading

Hands On Teaching Technology

An Interview with Greg Garner

This is the first in a series of occasional interviews of innovators in teaching & technology. I met Greg Garner, an education technologist for Eanes Independent School District in central Texas at SXSWedu in Austin earlier this year.  I’ve since come to know him as a dedicated, hand-on education technologist and a forward-thinking observer and critic of the ed tech industry.  In this lightly edited interview, he talks about what drew him into ed tech, opportunities he sees for tech in the classroom, and the role lightweight, classroom-centric tools like trinket can play.

Three Tools for Teaching Interactive Python

If my last post convinced you that Python is the best first language, you’re probably looking for some great interactive teaching tools. Well, here are my three favorite interactive tools for teaching Python to students of all levels: Beginning, Intermediate, and Advanced.

And….the winners are:

  1. Beginner: Turtle (using Skulpt)
  2. Intermediate: IPython Notebooks
  3. Advanced: Nitrous.io cloud development environment

Interactive Python For Beginners: Skulpt and Turtle.

As I wrote in the previous post, a great first Day is crucial to successful teaching and learning experiences. There’s nothing like giving students an interactive, visual example with no installation required.

Brad Miller and the other maintainers of the skulpt open source project have given us this amazing tool. We liked it so much at trinket that we built it into our course material editor. Edit: we also released a free Python Trinket maker so you can create your own snippet like the one above.

Next Up: IPython Notebooks

After students have a great first experience with code and want to learn more, they’ll eventually have to move beyond Skulpt and Turtle. IPython notebooks are perfect for when you need students to run a full version of Python but want to give them helpful context around runnable examples.

Even better, IPython notebooks are widely used. Mozilla Software Carpentry has been a leader in using them to teach Python at scale with their excellent workshops (see all their materials here. Once you or your students have something to share, sites like nbviewer.ipython.org and trinket (which uses nbviewer’s excellent open source technology allow easy viewing of these documents by anyone with a browser.

iPython

Though I’ve labeled IPython Notebooks as intermediate tools, scientists may find them suitable for everything they need. IPython notebooks are so powerful that data analysis and visualization that doesn’t require a cluster can be kept in a notebook. Ethan White’s programmingforbiologists.org, for instance, is able to incorporate numpy, scipy, and pandas into his curriculum using them. nbviewer.ipython.org also has quite a few scientific papers on it.

Full Stack Web Development: Nitrous.io

For teaching real-world programming, though, students will need a professional development environment. While Python distributions like Anaconda and IDEs like Sublime Text can fill this role, there are often cross-platform difficulties and the installation process is never smooth. So I advocate using a cloud-based environment that is accessed through a browser.

Nitrous.io provides (in my opinion) the best cloud-based development environment for Python and they have a free tier. I’ve used them in my class at UNC Chapel Hill to get students set up and ready to code in seconds. There’s nothing like frustrating installation experiences to doom a class before it starts. With Nitrous, students can be up an building a Django, Flask or Rails application in minutes instead of hours. Students get a graphical IDE and a Ubuntu server terminal below; what else could an instructor want?

Nitrous screenshot

The major downsides are that Nitrous isn’t suitable for building windowed desktop apps and it demands a continuous internet connection to use. But since more and more development is moving online these are tradeoffs I’m willing to accept.

What’s your favorite tool for teaching interactive Python? Vote here!

 

Sign Up and Start Teaching with trinket!

Get News from trinket

in Your Inbox

An Art History Major Teaching Programming, Part 3: Meetups

This is the third and final part of a series of posts on how my background in art history has given me a unique perspective on teaching programming at UNC Chapel Hill.  The first and second posts are at those links if you missed them!

Part 3: Meetups are Studio visits

An active culture of studio visits amongst artists has been central to the development of artistic movements. Programming meetups can serve a similar purpose and are important tools for educators, especially those of us teaching in higher education.

The importance of face-to-face learning

I had an opportunity to spend several months in Santa Fe studying photography at the Santa Fe Workshops. It was incredibly artistically stimulating to be surrounded by so many talented professional photographers. The experience that has stuck in my mind the most was a studio visit with Bill Clift, a large format black and white photographer based in Santa Fe. As we walked through his darkroom, a compact but sprawling structure behind his otherwise unremarkable suburban house, we learned how meticulous he was, about his preferences in film and photographic paper, and about an amazing book of photographs he was in the process of publishing. A Particular Worldcontains 30 years of spectacular color Polaroids that Clift took of his family and his home. He told us how over the past 30 years he simply kept a Polaroid in his truck and one in his house and just took images whenever they appeared to him. Clift’s other work involves a massive 8×10″ black and white view camera that is heavy and slow to use. Seeing him produce these parallel bodies of drastically different work helped me understand how to use different types of photographic tools in my own work.

http://www.williamclift.com/images/particular-world-5_sm.jpg
One of Bill Clift’s beautiful and intimate Polaroid portraits from his book A Particular World.

Continue reading