/pg2oop

A Practical Guide to Object Oriented Programming in Python

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

A Practical Guide to Object Oriented Programming (in Python)

This tutorial is intended to be a practical introduction to object oriented programming for novice Python programmers. It was created for the NCAR Python Tutorial Seminar Series, and the video for this tutorial will be hosted on the ProjectPythia YouTube Channel.

Note:

For those of you who have been following along with our Python Tutorial Seminars, you may have already taken the previous Object Oriented Programming tutorial. That's fine! This tutorial a different take on much of the same content. If you've attended or watched the previous OOP tutorial, and you are still a little confused about OOP and how to use it on a daily basis, then this tutorial may help. If you didn't attend or watch the previous OOP tutorial, that's fine, too. This tutorial is meant to be a stand-alone OOP tutorial presenting the material from a practical point of view. If this tutorial doesn't completely satisfy you, then feel free to go back and watch the first OOP tutorial again (or for the first time).

Note:

You can follow along with this tutorial interactively with this link!

You may also download the tutorial from GitHub to run it locally:

  • Check your conda install with conda --version and if necessary install by following these instructions.
  • Clone this repository by running git clone https://github.com/kmpaul/pg2oop in your terminal.
  • Still in the terminal, create a Conda environment with Jupyter installed by executing conda create --name pg2oop jupyterlab
  • Still in the terminal, move into the pg2oop directory with cd pg2oop.
  • Activate your environment in the terminal with conda activate pg2oop.
  • Launch the tutorial with JupyterLab by typing jupyter lab and then clicking on the index.ipynb file in Jupyter Lab’s file browser.