I chose array math as my topic since I’ll be teaching NumPy to web programmers this weekend.
My thoughts on the teaching questions:
- I prefer to do live coding when working in front of a class so I would print this out and use it as lecture notes, but the class would see me working in an empty notebook.
- On their own learners can step through this, read my annotations, and change things to see what happens.
- Having a small amount of code followed by the result of that code makes it easy to see the result of changes, as shown in Bret Victor’s demo. Thinking of the book, I think demonstrating situations that work and situations that error helps reinforce underlying mechanics for students.