Overview of Python
Reference
Material below modified from1: Python Fundamentals
Invoking Python
There are three main ways to use Python:
- Running / executing a Python file, e.g.
python filename.py
- this will launch python, execute (line by line) the contents of
filename.py
, and return
- this will launch python, execute (line by line) the contents of
- Interactively, either through:
- a console (e.g. the Python interpreter
python
or an IPython shellipython
) - a notebook (e.g. Jupyter notebook)*
- a console (e.g. the Python interpreter
*we will (mostly) focus on using Jupyter notebooks for this project.
Footnotes
Which itself is modified from the official python tutorial↩︎
Citation
BibTeX citation:
@online{foreman2023,
author = {Foreman, Sam},
title = {Energy {Justice} {Analysis} of {Climate} {Data} with
{ClimRR}},
date = {2023-08-01},
url = {https://saforem2.github.io/climate-analysis},
langid = {en}
}
For attribution, please cite this work as:
Foreman, Sam. 2023. “Energy Justice Analysis of Climate Data with
ClimRR.” Intro to HPC Bootcamp @ NERSC: ClimRR. August 1, 2023.
https://saforem2.github.io/climate-analysis.