Opinionated Python + uv template for new notebooks.
- Go to or create the project folder.
- Get the template files:
npx degit github:joaopalmeiro/template-python-uv-notebookor
npx degit github:joaopalmeiro/template-python-uv-notebook --force- Search for
template-python-uv-notebookand 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 Palmeiroand 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 Startedsection.
Install pyenv (if necessary).
pyenv install && pyenv versionspip install uv==0.1.24 && uv --versionuv venv .venvsource .venv/bin/activatewhich python && python --versionuv pip install -r requirements.txtuv pip list --strictuv pip check --verbosejupyter labruff checkruff check --fixruff formatdeactivate