Presentation: { YOUR PRESENTATION NAME }
Describe why your topic is important and what you want to share with your audience
- PyLadies Amsterdam uses uv for dependency management
- Google account if you want to use Google Colab
Run the following code:
git clone <github-url-of-workshop-repo>
cd <name-of-repo>
# create and activate venv, install dependencies
uv sync
- Visit Google Colab
- In the top left corner select "File" → "Open Notebook"
- Under "GitHub", enter the URL of the repo of this workshop
- Select one of the notebooks within the repo.
- At the top of the notebook, add a Code cell and run the following code:
!git clone <github-url-of-workshop-repo>
%cd <name-of-repo>
!pip install -r requirements.txt
To get started, open the pyproject.toml
file and set the required Python version. The pre-selected version 3.8 is generally a safe choice for most use cases.
After you have specified the Python version, you can create a virtual environment with uv venv
and add packages with uv add <package>
. Before the workshop, you can generate a requirements.txt file, which is needed e.g. for running code in GoogleColab, by running uv export > requirements.txt
.
Re-watch this YouTube stream
This workshop was set up by @pyladiesams and {your GitHub handler}
To ensure our code looks beautiful, PyLadies uses pre-commit hooks. You can enable them by running pre-commit install
. You may have to install pre-commit
first, using uv sync
, uv pip install pre-commit
or pip install pre-commit
.
Happy Coding :)