workspace-course-topics

Assignment: Create Intro Notebook

Due: Before next class

Prerequisites:

Throughout this document, {BALLPARK} stands for your paper’s folder name (e.g. OptimumDebt, HKMOHousingChannelMP). Always replace it with your actual folder name.


Objective

Create an intro notebook that identifies the paper, its authors, and you as the student contributor.

The intro notebook is the single source of truth (SST) for attribution metadata — all “Updated by” information lives here and nowhere else. It will be the first item in your MyST TOC.


Ask Cursor Throughout

Use Cursor as your advisor for Git commands. If you’re unsure about any step:

“I’m trying to [describe what you want to do]. What Git command should I use?”

For example:


Part A: Fork and set up your working environment

Already have a fork and PR branch? If you already forked the ballpark repo and have an open PR from earlier work, skip to Part B. Just make sure you’re on your existing PR branch:

cd ~/github/<your-username>/ballpark
git checkout <your-PR-branch>
git pull origin <your-PR-branch>

If you don’t remember your branch name, run git branch to see the list.

1. Fork the ballpark repository

If you haven’t already forked ballpark:

  1. Go to https://github.com/econ-ark/ballpark
  2. Click Fork (top right)
  3. Select your GitHub account as the destination
  4. You now have your own copy at https://github.com/YOUR-USERNAME/ballpark

2. Clone your fork and run setup

git clone https://github.com/YOUR-USERNAME/ballpark.git
cd ballpark
bash scripts/setup_env.sh

3. Set up remotes

# Check current remotes
git remote -v

# If 'origin' points to your fork, add upstream:
git remote add upstream https://github.com/econ-ark/ballpark.git

# If 'origin' points to econ-ark/ballpark, rename and add your fork:
git remote rename origin upstream
git remote add origin https://github.com/YOUR-USERNAME/ballpark.git

# Verify — you should see both 'origin' (your fork) and 'upstream' (econ-ark)
git remote -v

4. Create a branch for your work

# Make sure you're up to date
git checkout master
git pull upstream master

# Create your working branch
git checkout -b ballpark-YOURNAME

Replace YOURNAME with your name (no spaces, e.g., ballpark-smith).

You will use this same branch for all four notebook assignments and the final PR.


Part B: Create the intro notebook

5. Navigate to your paper folder

cd models/We-Would-Like-In-Econ-ARK/{BALLPARK}/

6. Create the notebook file

Create {BALLPARK}_intro.ipynb in the paper folder. For example, if the summary notebook is HKMOHousingChannelMP_summary.ipynb, create HKMOHousingChannelMP_intro.ipynb.

You can create this in Cursor: File > New File, save as {BALLPARK}_intro.ipynb.

7. Add content (markdown cells)

The intro notebook is the single source of truth for attribution. Do not add “Updated by” lines to the summary or any other notebook — all such information lives here. Add markdown cells with:

No code cells are needed. No bibliography required for this notebook.


Part C: Commit

# Verify you're on your branch
git branch --show-current

# Stage the intro notebook
git add {BALLPARK}_intro.ipynb
git commit -m "Create intro notebook for [Your Paper] — [Your Name]"

Deliverable

What to check: Open the notebook and verify it has the paper’s full title and authors, the original ballpark contributor’s name and date, and your name as “Updated by.”


Troubleshooting

“Permission denied” or authentication errors:

“Can’t find the notebook”:

Branch or remote confusion:


If You Get Stuck

Ask Cursor AI. If the “auto” model is inadequate, try Claude Opus 4.6 or ChatGPT 5.3.


Next Step

Create Prior-Literature Notebook