All Images

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

Conda Command finished


Figure 10

JupyterLab Launch


Figure 11

JupyterLab at Launch


Figure 12

Installation Screen


Figure 13

Miniconda 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

Installation Finished


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 QuittingMarkdown codeRendered output


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


Figure 6

Running code cells in JupyterLab


Figure 7

JupyterLab Project with Data


Figure 8

JupyterLab Project with Gapminder Data


Variables and Assignment


Data Types and Type Conversion


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.

Built-in Functions and Help


Lists


For Loops


Conditionals


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


Figure 5


Figure 6


Figure 7


Figure 8


Figure 9


Figure 10


Figure 11

Minima Maxima Solution

Figure 12

Correlations Solution 1

Figure 13

Correlations Solution 2

Figure 14

More Correlations Solution

Writing Functions


Variable Scope


Programming Style


Wrap-Up