Python lesson to be taught at STFC Introductory Course in Solar and Solar-Terrestrial Physics at the University of St Andrews, August 2023
Based on the Software Carpentry lesson Plotting and Programming in Python.
The lesson is composed of a set of Jupyter Notebooks. You can:
- Clone this repository (or download a zip archive of the contents) and run the notebooks on your own computer (see below), or
- Run them in Binder using the 'launch binder' button above.
You can start the JupyterLab server through the command line or through an application called Anaconda Navigator
. Anaconda Navigator is included as part of the Anaconda Python distribution.
To start the JupyterLab server you will need to access the command line through the Terminal. There are two ways to open Terminal on Mac.
- In your Applications folder, open Utilities and double-click on Terminal
- Press Command + spacebar to launch Spotlight. Type
Terminal
and then double-click the search result or hit Enter
After you have launched Terminal, type the command to launch the JupyterLab server.
$ jupyter lab
To start the JupyterLab server you will need to access the Anaconda Prompt.
Press Windows Logo Key and search for Anaconda Prompt
, click the result or press enter.
After you have launched the Anaconda Prompt, type the command:
$ jupyter lab
To start a JupyterLab server from Anaconda Navigator you must first start Anaconda Navigator (click for detailed instructions on macOS, Windows, and Linux). You can search for Anaconda Navigator via Spotlight on macOS (Command + spacebar), the Windows search function (Windows Logo Key) or opening a terminal shell and executing the anaconda-navigator
executable from the command line.
After you have launched Anaconda Navigator, click the Launch
button under JupyterLab. You may need to scroll down to find it.
Here is a screenshot of an Anaconda Navigator page similar to the one that should open on either macOS or Windows.
And here is a screenshot of a JupyterLab landing page that should be similar to the one that opens in your default web browser after starting the JupyterLab server on either macOS or Windows.