About CMVividly
This page helps you get set up to run these kinds of analyses yourself.
1 Run notebooks / code in a Codespace
The fastest way to explore this code (no local setup required) is GitHub Codespaces:
- On the CMVividly repo page, click the green Code button, open the Codespaces tab, and click Create codespace on main.
- Wait for the codespace to build. The first launch runs
uv syncautomatically, installing all dependencies and thecmvividlypackage itself, and it takes a minute or two. - In the file explorer, open the example notebook, e.g.
notebooks/cmvividly_example.ipynb. - Two options for starting a notebook:
- Click Select Kernel in the top right, choose Python Environments, and pick the
.venvinterpreter thatuv synccreated (not the default system Python). - Open a terminal in the codespace and run
uv run jupyter lab --no-browser, then click “Open in Browser” in the box that pops up.
- Click Select Kernel in the top right, choose Python Environments, and pick the
2 Reproduce this environment on your machine
- Clone the CMVividly github repo and install python and uv.
- Two options for setting up the environment:
- with uv
- From the repository root type
uv sync - To start Jupyter, type
uv run jupyter lab
- From the repository root type
- with venv and pip
python -m venv .venvsource .venv/bin/activatepip install -r requirements.txt- Put the
src/pythondirectory on yourPYTHONPATHto use the cmvividly package.
- with uv