How to Run the Notebook Exercices

Section Objectives:
- Learn how to execute the code in each module.

How to Run the Notebook Exercices#

After each module, you can test your knowledge with a coding exercice in a jupyter notebook file. You can run the notebooks in three different ways, depending on your preference and setup. Select the rocket sign on the top right side of the page to see your three options:

jupyter launch button
  1. Live Code

  • Easiest option — no setup needed.

  • Just click the ā€œLive Codeā€ button at the top of each exercice notebook page in this book. Wait until you see the following: ā€œLaunching from mybinder.org: ready ā€œ.

  • This allows you to execute the code cells directly in the jupyter book.

  1. Run in Google Colab

  • Just click the ā€œOpen in Colabā€ button at the top of each exercice notebook page in this book.

  • It runs in your browser and saves changes to your Google Drive (if you sign in).

  • Make sure the required packages are imported.

  1. Run on Binder

  • Great if you want a full coding environment in your browser.

  • Just click the ā€œOpen in Binderā€ button at the top of each exercice notebook page in this book.

  • Binder launches a temporary Jupyter environment.

  • No installation required, but it takes a minute to load.

  1. Download and Run Locally

  • Best for learning how to run Python on your own machine.

  • Download the notebook (.ipynb) from GitHub.

  • Open it using your preferred code editor/IDE.