Title | Teaching | Exercises | Question | Objectives | Activity | Keypoints | ||||
---|---|---|---|---|---|---|---|---|---|---|
Introduction to Jupyter Notebooks |
15 |
1 |
|
|
|
|
This workshop will introduce you to Jupyter Notebooks. You will learn what they are, what they do and why you might like to use them. It is an introductory set of lessons for those who are brand new, have little or no knowledge of coding and computational methods in research. By the end of the workshop you will have a good understanding of what notebooks can do, how to open one up, perform some basic tasks and save it for later. If you are really into it, you will also be able to continue to experiment after the workshop by using other people's notebooks as springboards for your own adventures!
Computational notebooks have been around since the late 1980s. Essentially a notebook is an advanced word processor. Also known as a notebook interface, the concept is that it is a virtual notebook environment used for literate programming. 'Literate programming' pairs the functionality of word processing software with both the shell and kernel of that notebook's programming language.
Notebooks are documents that contain both code and rich text elements, such as links, equations and different ways of visualising data via graphs, tables and figures. Because of the mix of code and text, notebooks are an ideal place to bring together results and an analysis description. Notebooks are really smart documents - they can be executed to perform the data analysis in real time.
Jupyter is named after three computer programming languages - Julia, Python and R. It is a free, open-source, interactive web tool which researchers use so they can combine software code, computational output, explanatory text and multimedia resources in a single document.
Jupyter Notebooks also refer to Galileo’s original notebooks of his observations of celestial bodies. These have all been digitized now and are really beautiful historical objects. Here are the notes he made on his discovery of Jupiter’s moons:
You can see in this image the title, comments, documentation, equations and diagrams. That’s what Jupyter Notebooks are designed to do, with the added bonus of the computer performing the calculations and creating the visualisations on your behalf. A beautiful 21st century object instead.
Image credit: University of Michigan Special Collections Library
Jupyter Notebooks have exploded in popularity over the past couple of years, now supporting additional languages and being used by more and more people from different disciplines.
In pairs, talk about the language used in the introductions. Are you familiar with these terms? What are the words that trip you up? Think of a way to remember what that word means in this context that might help others understand it better. How could you re-write some of the introductory text above to make it easier to understand?