What this is. GitHub Codespaces gives you a complete Linux computer in your web browser, already set up for this project. You do not install Python, Git or anything else on your own machine. This works on Windows, macOS, Linux and Chromebooks, as long as you have a web browser and a GitHub account.
Status: partly tested. The setup has been tested once by the project lead, with the same Python and package versions as the lab. The automatic setup step, which runs by itself when you open a codespace, is still being checked. If the environment is missing when you open it, use the fallback in If the environment is missing below, and tell your lead.
| Word | What it means here |
|---|---|
| Codespace | Your own Linux computer in the browser, for this project. |
| Terminal | A window in the codespace where you type commands. |
| Notebook | A document that mixes text, code and plots (a .ipynb
file). |
| Stop | Turns the codespace off, so it stops using your hours. Your files are kept. |
| Delete | Removes the codespace and everything in it that is not saved to GitHub. |
A new browser tab opens with a code editor and a terminal at the bottom. The first start takes several minutes while the environment is prepared. Wait until the page stops changing.
You see the project’s files on the left, and a terminal at the
bottom. Type python3 --version in the terminal and press
Enter. You should see Python 3.12.
Type these lines into the terminal, one at a time, pressing Enter after each:
nsdf-cli version
python -c "import nsdf_dark_matter; print('ok')"
cd python && python -m pytest -q && cd ..
You see NSDF Dark Matter CLI: 0.6.0, then
ok, then a line ending 101 passed (a larger
number is fine).
Download from your home folder, not from inside the project. The project folder is tracked by Git, and the data would be picked up by mistake.
cd ~
nsdf-cli download 07221203_2025_F0001
The data (about 34 MB) goes into an idx folder in your
home folder. Wait until the prompt comes back.
Follow the steps of the first analysis guide (guide 2 for your computer). The only changes are these:
data_analysis/R76/student/,
right-click, choose New Folder and type your name (the
same name as in your branch, without spaces). Open that folder, then
click New File, or copy the code from the guide into a
new notebook./home/vscode, and the code in the guide uses
Path.home() / "idx", so it finds the data without
changes.data_analysis/R76/student. The code finds the project by
looking upward from there.The first cell prints (1517, 4096) and the quiet-trace
cell prints 179.
Your work is kept in the codespace, but it is not part of the project until it is saved to GitHub. To save a notebook:
idx or any
.bin file appears, do not add it.First analysis: 179 quiet traces, and click
Commit.When you finish, stop the codespace so it stops using your hours. Click the name of the codespace at the bottom left of the window, then Stop Current Codespace. Or go to github.com/codespaces and use the menu next to it.
Do not leave a codespace running overnight. It keeps using your hours while it is on.
If python -c "import nsdf_dark_matter" fails, the setup
step did not run. Install the packages by hand, in the terminal:
python -m pip install nsdf-dark-matter==0.3.1 nsdf-dark-matter-cli==0.6.0 numpy==2.2.6 matplotlib==3.10.7 h5py pytest ipykernel
Then run the checks in Step 2 again. If that does not work, copy the last lines of the message and send them to your lead.
Guide version 7, 13 October 2026. Written for every computer. Please tell the project lead where a step was unclear.
Anthony Villano, project lead: anthony.villano@ucdenver.edu
When you write, include the codespace name (shown at the bottom left), the command you ran, and the last lines of its output.