GitHub - joaopalmeiro/template-python-uv-notebook: Opinionated Python + uv template for new notebooks. (original) (raw)

template-python-uv-notebook

uv Ruff

Opinionated Python + uv template for new notebooks.

Getting Started

  1. Go to or create the project folder.
  2. Get the template files:

npx degit github:joaopalmeiro/template-python-uv-notebook

or

npx degit github:joaopalmeiro/template-python-uv-notebook --force

  1. Search for template-python-uv-notebook and replace it with the project name. Ignore the template repository URL in the NOTES.md file.
  2. 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.
  3. Search for João Palmeiro and replace it with the author's name.
  4. Open the requirements.txt file and add the project-specific dependencies.
  5. Delete the TEMPLATE.md file.
  6. 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