Overview
Teaching: 40 min
Exercises: 0 minQuestions
How do I use Jupyter Notebooks to write Python programs
Objectives
Understand the architecture of Jupyter.
Be familiar with Jupyter terminology.
Experiment with running Python programs using Jupyter.
Understand the different output formats.
Please follow this link for a brief overview of Jupyter Notebook.
Launching the Notebook
The Jupyter notebook is a server-client application that allows editing and running notebook documents via a web browser. The Notebook can be executed on a local desktop requiring no internet access or can be installed on a remote server and accessed through the internet.
The Jupyter notebook application can be launched by typing in a terminal (cmd on Windows):
jupyter notebook
This will launch a new browser window (or a new tab) showing the notebook dashboard. When started, the Jupyter notebook app can only access files in the current directory (or any sub-directories) when it was launched. If you store the notebook documents in a different directory, you need will need to change to that directory (or a parent directory) before launching the app.
Please follow this link for an overview of the basic operation of the Notebook.
Please follow this link for an overview of how to run code in a Notebook.
Key Points
Jupyter provides a rich environment for developing Python.
Notebooks containing programs and output can be shared.