uv-jupyter-kernel
Script to configure Jupyter kernels that use the uv environment and dependency manager. It allows you to create isolated kernels for different Python versions, making it easier to use Jupyter with controlled and reproducible environments.
Requirements
- Some Jupyter client (e.g., VSCode extension)
- uv installed and available in the PATH
Usage
uvx uv-jupyter-kernel --versions 3.13 3.12
By default, the script configures kernels for Python versions 3.13 and 3.12. You can specify other versions by passing them as arguments.
This will create (or update) kernel files at ~/.local/share/jupyter/kernels/uv-<version>/kernel.json, allowing you to select the corresponding kernel for the desired Python version within Jupyter.
What does the script do?
- Locates the
uvexecutable on the system. - For each specified Python version, creates a Jupyter kernel that:
- Ephemerally installs
ipykerneland starts the executor itself. - Ensures the
uvPATH is available in the kernel environment. - Allows each notebook to run in an independent, ephemeral, and isolated environment.
- Ephemerally installs
Advantages
- The only thing that needs to be available initially is uv.
- Ephemeral environments: each notebook has its own and can install new dependencies with
uv pip install; when Jupyter is restarted, the environment is reset. - No need to install Jupyter in the environment: less chance of dependency conflicts.
- Shared cache: each thing can be downloaded only once and then reused.
Disadvantages
- Higher disk usage if your system does not support hardlinks (e.g., Termux on Android)
Metadata
Release files for uv-jupyter-kernel 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| uv_jupyter_kernel-0.2.4.tar.gz | 5.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uv_jupyter_kernel-0.2.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.9 kB
Release files / uv_jupyter_kernel-0.2.4.tar.gz
| Download URL | uv_jupyter_kernel-0.2.4.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96036146b0909f69e43868914da5ffbc73dad1d2bd42c1b362f3e673776d0c27
|
|
BLAKE2b-256 checksum How to use checksums |
3c10fb5d7c5613fb065384c1c4deb92c2f9edc0252b2b5c8a3c1dcd60a49b5d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / uv_jupyter_kernel-0.2.4-py3-none-any.whl
| Download URL | uv_jupyter_kernel-0.2.4-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e5691111503872ff5096a2ec5c43f3a84b1d1cdc3abeefec65f737bcbc1ae15
|
|
BLAKE2b-256 checksum How to use checksums |
9987d2a060c57f413e34fd827d64c696201c3098293c727b52e862cc7b9c2adf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for uv-jupyter-kernel 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.