What are Notebooks?
I’ll admit, the first time I heard the term computational notebook I had a mental image of a small laptop. I was, of course, wrong. Computational notebooks are a much more useful tool for both Learning and for Teaching. Specifically, I am speaking about Jupyter notebooks which are live documents that allow for interactive computing in several languages: Python, R, Julia, Sage, and more. These documents are broken up into cells which can contain code, markdown text or mathematical expressions (via LaTeX). These cells can then be run to compute the output within the document, no need to compile. Due to this ability to immediately see the output notebooks allow learners to play around with code, adapting or adding elements and observing the outcome. Rather than carrying on trying to explain this I’ve added a snippet below so you can get more of a feel for it. You can also head to the Jupyter page to try it out in your browser.
As you can see this is a very powerful tool for teaching both the mechanisms and the theory required for programming but there are even more good bits! Jupyter can be installed to run on your own machine but the really exciting part is that these document can be run online. By using a hosting service, such as Noteable, you can use notebooks without having to install anything on your own machine. Anyone who has tried to run a workshop before will know that being able to remove the need to pre-install software from your learner’s machines is a godsend. This removal of one of the key barriers allows learners to engage more directly with the source material. With a little ingenuity, this can also become a very versatile tool. You could use a blank document to show the process of programming to a class, you could then share that document and allow learners to alter or add cells, you could present learners with a ‘broken’ cell and challenge them to fix it.
Have a look at this list on Github for more varied examples of what can be done.
If you use notebooks already then drop a comment below to say how you use them. If you are interested in using them at the University of Edinburgh then get in touch.