Planet Python

Rodrigo Girão Serrão: TIL #140 – Install Jupyter with uv

The text explains how to correctly install Jupyter using the uv package manager. Running `uvx jupyter notebook` or `uvx jupyter lab` works but relies on uv's guessing ability. The core Jupyter command comes from the `jupyter-core` package, not `jupyter`. Therefore, installing only `jupyter-core` won't provide the expected subcommands like `notebook` and `lab.` Running `uv tool install jupyter` fails, as the `jupyter` package itself doesn't offer commands. The recommended installation method is `uv tool install --with jupyter jupyter-core`. This command installs `jupyter-core` and its required dependency, `jupyter`. This approach ensures access to both the core Jupyter command and its related subcommands. The `--with` flag tells uv to install an additional dependency. Using this method properly configures Jupyter for use within the uv environment. The text also encourages users to explore uv's documentation for more Jupyter integration tips. This whole process ensures a functional Jupyter setup when using uv.
favicon
mathspp.com
mathspp.com
Image for the article: Rodrigo Girão Serrão: TIL #140 – Install Jupyter with uv
Create attached notes ...