Skip to content

Latest commit

Β 

History

History
97 lines (62 loc) Β· 5.38 KB

File metadata and controls

97 lines (62 loc) Β· 5.38 KB

NC State University Libraries Logo

NC State University Libraries Python Workshops

NC State Libraries Workshops Data Science Services GetDataHelp Email: getdatahelp@ncsu.edu Deploy slides to GitHub Pages

Getting Started with Python

Fundamentals Open in Colab β€” Fundamentals

Loops and Functions Open in Colab β€” Loops and Functions

Exploratory Data Analysis Open in Colab β€” Exploratory Data Analysis

These materials are used in NC State University Libraries' Data Science Services workshops covering practical data skills (Python, R, visualization, and analysis).


πŸš€ Quick start

  1. Click a workshop badge above to open in Colab.
  2. Run the install cell when prompted (section below).
  3. Runtime β†’ Restart runtime.
  4. Runtime β†’ Run all. βœ…

πŸ“˜ Included notebooks

  • 🧱 Fundamentals β€” variables, types, lists, dicts, and more.
  • πŸ” Loops and Functions β€” conditionals, loops, functions, and scope.
  • πŸ”Ž Exploratory Data Analysis (Polars) β€” data loading, summaries, and plots.

🧩 Solutions

  • Fundamentals β€” Solutions Open in Colab β€” Solutions: Fundamentals

  • Loops and Functions β€” Solutions Open in Colab β€” Solutions: Loops and Functions

  • Exploratory Data Analysis β€” Solutions Open in Colab β€” Solutions: Exploratory Data Analysis

πŸ’» Use on Google Colab

This folder contains Python/Jupyter equivalents of the R workshop notebooks. You can run them directly in Google Colab without installing anything locally.

πŸ”— Open in Colab

  1. Click a badge above to open directly in Colab.
  2. Prefer to run locally? See the LOCAL.md guide.

Alternatively, in Colab: File β†’ Open Notebook β†’ GitHub tab β†’ paste the repo URL https://github.com/NCSU-Libraries/getting-started-with-python and select the notebooks in the repository root.

πŸ“¦ Install dependencies

Run the following cell at the top of each notebook to install exact dependencies compatible with Colab.

!pip -q install -r https://raw.githubusercontent.com/NCSU-Libraries/getting-started-with-python/main/requirements.txt

Notes:

  • Colab already includes many scientific packages; installing ensures versions match the notebooks.
  • If you fork, adjust the URL above to point to your fork/branch.

πŸ’Ύ Save outputs to Google Drive (optional)

If you want to persist outputs or datasets:

from google.colab import drive
drive.mount('/content/drive')
# e.g., save under /content/drive/MyDrive/intro-to-prog-r/
# e.g., save under /content/drive/MyDrive/intro-to-prog-py/

▢️ Run the notebooks

After installs finish:

  1. Runtime β†’ Restart runtime (recommended) so freshly installed packages are active.
  2. Runtime β†’ Run all.

πŸ› οΈ Troubleshooting

  • If a package fails to install, re-run the install cell; transient network issues are common.
  • For large installs, ensure you restarted the runtime before executing the rest of the notebook.
  • If you see import errors, verify the requirements.txt URL matches the branch you want.