@extends('template') @section('title') Lab 1: Jupyter Notebooks @stop @section('content') ## Lab 1: Jupyter Notebooks In this course we use a teaching tool called Jupyter Notebooks. Notebooks are special documents that combine instruction with code examples that can be executed directly in the Notebook itself. This means we can tell you how something works *and* show you how it works at the same time. Screenshot of a Notebook Notebook files are typically bundled with a .zip folder you'll download for lectures, labs, or exercises. As your first example of a Jupyter notebook, we will use a notebook from the [Course Overview and Big Ideas lecture](/lectures/lec_course_intro). 1. Click on this [lec01_course_intro.zip link](/content/lectures/lec_course_intro/files/lec01_course_intro.zip) to download a `.zip` file to your computer. 2. Extract the downloaded `lec01_course_intro.zip` file (usually an option in the right-click or option-click menu; let us know if you need help with this) to reveal a folder with a few files we will use during lecture. Note that some computers may automatically unzip the file after you download it, and some may show you the files without actually extracting them if you double-click it. 3. In order to run lecture code, you will need to open the `launchNotebook.py` file included in the zip using Thonny, and then run it. Running that file should launch two windows in your web browser, one allowing you to select and open other notebook files (extension ".ipynb") and another with the lecture notebook open already. 4. In this particular notebook, you don't need to write any code. You can just keep pressing the Run button to execute prewritten code to see how it works. (More typically you will be given some prewritten code and will have to flesh out skeleton code in some cells.) @include('/labs/lab01/_toc') @stop