Skip to content

Latest commit

 

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSYC 201B - W26

Source code for course materials and website for the Winter 2026 edition of Statistical Intuitions for Social Scientists

Python and all its dependencies are managed by uv in an isolated environment. All pages and computational documents are rendered & executed with quarto using the environment.

Quick guide

  • Always cd site/ && uv run quarto render before git commit and git push to build the site to the docs/ folder
  • Run npx serve docs/ to see the built-site locally
  • The website is automatically updated from this folder each push!

Initial setup

  1. Install homebrew a macOS package manager to make the brew command available in your terminal
  2. Install Quarto: brew install --cask quarto
  3. Install uv for Python management: brew install uv
  4. Clone the repository: git clone copyURLfromButton
  5. Install dependencies: uv sync
  6. Register the Jupyter kernel (one-time): uv run poe setup

Note: Step 6 registers a Jupyter kernel that Quarto uses to run Python code. This works across VSCode, RStudio, Positron, and the command line. Re-run it if you delete and recreate the .venv directory.

Using Quarto or Marimo

We've setup Poe the Poet which lets us define custom commands in pyproject.toml to reduce typing:

VSCode / Codium

The .vscode/ folder includes workspace settings that:

  • Use Python, Ruff, and ty from the project's .venv (no global installs needed)
  • Recommend essential extensions (Quarto, Jupyter, Ruff, ty)
  • Provide a clean, distraction-free UI with telemetry disabled

When you open the project, VSCode will prompt to install recommended extensions. Accept to get the full experience.

Other IDEs: RStudio and Positron also work — run uv run poe setup first to register the Jupyter kernel

Adding or Removing Python Packages

uv add mypackage: installs mypackage and adds it to pyproject.toml

uv remove mypackage: removes mypackage and the corresponding entry in pyproject.toml

About

PSYC-201B W26 course source code

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages