GitHub - joaopalmeiro/template-python-uv-notebook: Opinionated Python + uv template for new notebooks. (original) (raw)
template-python-uv-notebook
Opinionated Python + uv template for new notebooks.
Getting Started
- Go to or create the project folder.
- Get the template files:
npx degit github:joaopalmeiro/template-python-uv-notebook
or
npx degit github:joaopalmeiro/template-python-uv-notebook --force
- Search for
template-python-uv-notebook
and replace it with the project name. Ignore the template repository URL in the NOTES.md file. - Search for
Opinionated [Python](https://www.python.org/) + [uv](https://github.com/astral-sh/uv) template for new notebooks.
and replace it with the (short) project description. - Search for
João Palmeiro
and replace it with the author's name. - Open the requirements.txt file and add the project-specific dependencies.
- Delete the TEMPLATE.md file.
- Delete the Getting Started section.
Development
Install pyenv (if necessary).
pyenv install && pyenv versions
pip install uv==0.1.24 && uv --version
source .venv/bin/activate
which python && python --version
uv pip install -r requirements.txt