Jupyter Notebook

Working with Jupyter notebooks

The lecture notes for today's lecture are in the form of a Jupyter notebook. You can download the notebook file by clicking the blue button at the top of these lecture notes. To work with Jupyter notebooks in Visual Studio Code you must have the jupyter package installed in your Anaconda environment, and you must also select the Python interpreter in that Anaconda environment in Visual Studio Code.

Visual Studio Code includes support for creating and working with Jupyter notebooks. If you open a project folder that contains a Jupyter notebook file you can open the notebook by double-clicking on the file. This opens a special interactive editor for Jypyter notebooks. You can also create a new, empty Juypter notebook by pressing the control-shift-p key combination to open the command palette. Type jupyter in the search box and then select the command "Jupyter: create new blank jupyter notebook".

In today's lecture I am going to be showing the basics of working with Jupyter notebooks. In the first part of the lecture video posted above I show some of the basic commands in the Visual Studio Code editor for Jupyter notebooks.

An introduction to numpy

The main subject of today's lecture is an introduction to the numpy Python package. numpy is one of the most popular packages in Python for doing numerical calculations with vectors and matrices. The Jupyter notebook linked above includes many examples of important commands and operations in numpy.

Online documentation for numpy is available at numpy.org.