Purpose: Navigate to your ballpark notebook and open it within Cursor.
Cursor must have been opened from: ~/GitHub/<your-username>/ballpark
How to check: Look at the Explorer panel (left side of Cursor). The root folder should be ballpark, not models or a paper name.
If Cursor shows the wrong root:
cd ~/GitHub/econ-ark/ballpark && cursor .Opening Cursor from a subdirectory like models/We_Would_Like_In_Econ-ARK/SomeProject/ will cause problems:
.venv environment won’t be found (it’s at the repo root)Always open Cursor from the ballpark directory itself, then navigate to notebooks within Cursor.
In Cursor’s terminal, run:
echo $VIRTUAL_ENV
Expected: A path containing .venv-...
If empty or no output: You haven’t activated the environment. Complete cursor-environment-install first.
Look at your terminal prompt in Cursor.
Expected: Prompt starts with (VENV-Darwin-arm64) or similar
If not visible: Run the activation command:
source .venv-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)/bin/activate
In the Explorer panel, the top-level folder should be ballpark.
If it shows something else:
~/GitHub/econ-ark/ballparkIn the left sidebar, expand:
ballpark/
└── models/
└── We_Would_Like_In_Econ-ARK/
└── [your-paper-folder]/
└── [your-notebook].ipynb
Click on the .ipynb file to open it.
When prompted “Select Kernel”:
.venv-... environment (usually at the TOP of the list)Common mistake: Clicking “Jupyter Kernel” or “Select Another Kernel” instead. These options usually don’t find your environment. Always start with “Python Environments”.
If the environment doesn’t appear:
cd ~/GitHub/<your-username>/ballpark && source .venv-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m)/bin/activate && cursor .Look at the top-right of the notebook (next to “Run All”).
Expected: Shows VENV-Darwin-arm64 or your environment name
Click “Run All” to execute all cells.
“Kernel not found” or can’t find Python environment:
ballpark root (not a subdirectory)ballpark directoryWindows: Environment shows but fails to start: