Tutorials for Python projects for PDSSP.
Simply sync the environment with uv with
uv sync --all-groups --all-extrasThen start editing.
To use uv and jupyterlab together, sync the environment with uv:
uv sync --all-groups --all-extrasThen create the kernel for tutorials with the following command:
uv run ipython kernel install --user --env VIRTUAL_ENV $(pwd)/.venv --name=tutorialsThen start the server:
uv run --with jupyter jupyter labWhen creating a notebook, select the tutorials kernel from the dropdown. If you need to install a dependency without affecting the pyproject.toml file, launch the following in a notebook cell:
!uv pip install <dependency>For more use cases, read the guide of Jupyter integration in uv.