Installing Python and JupyterLab


Figure 1

Apple Silicon Chip


Figure 2

Miniconda Download


Figure 3

Installation Screen


Figure 4

Select a Destination


Figure 5

Install Prompt


Figure 6

Installation Completed


Figure 7

Terminal search


Figure 8

Mac terminal


Figure 9

Pip Command finished


Figure 10

JupyterLab Launch


Figure 11

JupyterLab at Launch


Figure 12

Installation Screen


Figure 13

Minconda Installer


Figure 14

Miniconda Installation Type


Figure 15

Miniconda Installation Location


Figure 16

Miniconda Advanced Installation Options


Figure 17

Miniconda Installation Complete


Figure 18

Miniconda Close Installer


Figure 19

Anaconda Search Result


Figure 20

Anaconda Prompt


Figure 21

Anaconda Prompt


Figure 22

JupyterLab Launch


Figure 23

JupyterLab at Launch


Figure 24

JupyterLab Menu Bar


Figure 25

JupyterLab Main Work Area


Figure 26

JupyterLab Left Side Bar


Figure 27

Show File Browser in Menu


Figure 28

Create PythonWorkshop folder


Figure 29

Launch a New Python3 Notebook


Figure 30

Print Working Directory from within Python


Running and Quitting


Figure 1

JupyterLab Menu Bar


Figure 2

JupyterLab Left Side Bar


Figure 3

JupyterLab Main Work Area


Figure 4

Example Jupyter Notebook


Figure 5

Multi-panel JupyterLab


Variables and Assignment


Figure 1

A line of Python code, print(atom_name[0]), demonstrates that using the zero index will output just the initial letter, in this case ‘h’ for helium.
A line of Python code, print(atom_name[0]), demonstrates that using the zero index will output just the initial letter, in this case ‘h’ for helium.

Data Types and Type Conversion


Built-in Functions and Help


Libraries


Reading Tabular Data into DataFrames


Pandas DataFrames


Plotting


Figure 1

A line chart showing time (hr) relative to position (km), using the values provided in the code block above. By default, the plotted line is blue against a white background, and the axes have been scaled automatically to fit the range of the input data.

Figure 2


Figure 3


Figure 4

Minima Maxima Solution

Figure 5

Correlations Solution 1

Figure 6

Correlations Solution 2

Figure 7

More Correlations Solution

Lists


For Loops


Conditionals


Looping Over Data Sets


Writing Functions


Variable Scope


Programming Style


Wrap-Up


Feedback