uvnb
A utility to run UV against Jupyter notebooks.
Quickstart
You can install this tool via:
uv pip install uvnb
Usage
The goal of uvnb is to allow you to run Jupyter notebooks with dependencies via UV by leveraging the script metadata. By doing this, you can just define your dependencies in the notebook metadata and quickly run it.
This tool assumes that you have metadata in the first cell that looks like this:
# /// script
# requires-python = ">=3.11"
# dependencies = [
# "requests<3",
# "rich",
# ]
# ///
import requests
from rich.pretty import pprint
resp = requests.get("https://peps.python.org/api/peps.json")
data = resp.json()
pprint([(k, v["title"]) for k, v in data.items()][:10])
From here you can run the notebook, or start a Jupyter server via the command line.
python -m uvnb
Usage: python -m uvnb [OPTIONS] COMMAND [ARGS]...
CLI for working with Jupyter notebooks.
Options:
--help Show this message and exit.
Commands:
run Run a Jupyter notebook.
start Start Jupyter notebook server.
UV to the max
Fun fact, you don't have to install this tool beforehand. You can just run it with uv:
uv run --with nbuv python -m nbuv
Metadata
Release files for uvnb 0.1.0
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 | Actions |
|---|---|---|---|---|
| uvnb-0.1.0.tar.gz | 4.0 kB | Without provenance | Details for uvnb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| uvnb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for uvnb-0.1.0-py3-none-any.whl |
Total release size: 8.4 kB
Release files / uvnb-0.1.0.tar.gz
| Download URL | uvnb-0.1.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7c163d712d67c08786d27b8c47bcf6a00553666069858ffcca83ea259048b78
|
|
BLAKE2b-256 checksum How to use checksums |
f2603f2266d2ec6f53b4fc7ac84dbbe02da7c98fabeff4e92f3c79f26e3ecdd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Release files / uvnb-0.1.0-py3-none-any.whl
| Download URL | uvnb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a816c504e32a35d83350bf1aa14bc02f3ed542cb191ed86839b4d63821f8c20
|
|
BLAKE2b-256 checksum How to use checksums |
ace9ee8a966167209c3b7e3f15dfc69884c1ee86017a53c05c15f9d0195b839a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.4
|
Security for uvnb 0.1.0
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.