Overview of Python

August 1, 2023

Material below modified from1: Python Fundamentals

Invoking Python

There are three main ways to use Python:

  1. 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
  2. Interactively, either through:
    1. a console (e.g. the Python interpreter python or an IPython shell ipython)
    2. a notebook (e.g. Jupyter notebook)*

*we will (mostly) focus on using Jupyter notebooks for this project.

Footnotes

  1. 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.