opennb 📓
📓 Open Jupyter notebooks from GitHub repositories or URLs directly in Jupyter.
Very useful in conjunction with uvx.
[!TIP] Try
uvx --with "pipefunc[docs]" opennb pipefunc/pipefunc/example.ipynbto open a notebook from thepipefuncrepository and ensure its dependencies are installed.
Features
- 📦 Open notebooks directly from GitHub repositories
- 🔄 Automatic default branch detection
- 🌳 Support for specific branches
- 🔗 Direct URL support
- 🚀 Pass-through of Jupyter notebook arguments
- 📥 Integration with
uvxfor dependency management - 👽 Also works with Jupytext
.mdor.pynotebooks
Usage
Open a notebook from a GitHub repository:
opennb owner/repo/path/to/notebook.ipynb
This defaults to the default branch of the repository.
Or specify a specific branch:
opennb owner/repo@branch#path/to/notebook.ipynb
Open directly from a URL:
opennb https://example.com/notebook.ipynb
[!IMPORTANT]
opennbis especially useful when used withuvx.
Use with uvx to install dependencies and open a notebook in one go:
uvx --with dependency opennb owner/repo/path/to/notebook.ipynb
For example, to open a notebook from the pipefunc repository and ensure its dependencies are installed:
uvx --with "pipefunc[docs]" opennb pipefunc/pipefunc/example.ipynb
Arguments
All arguments after the notebook specification are passed directly to jupyter notebook:
opennb owner/repo/notebook.ipynb --port 8888 --no-browser
Examples
Open a notebook from the main branch:
opennb owner/repo/notebook.ipynb
Open from a specific branch:
opennb jupyter/notebook@main#docs/source/examples/Notebook/Notebook%20Basics.ipynb
Open with custom Jupyter settings:
opennb owner/repo/notebook.ipynb --NotebookApp.token='my-token'
Installation
Install using pip:
pip install opennb
Or using uv:
uv pip install opennb
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for opennb 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| opennb-0.3.1.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| opennb-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.6 kB
Release files / opennb-0.3.1.tar.gz
| Download URL | opennb-0.3.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac3f7f3fa17e605a5cb21a34787c67913960886183bd125c9c05b954a0188399
|
|
BLAKE2b-256 checksum How to use checksums |
8be24c3c61becd118127188c5837556d3ec072dafe3e7e773e880959e43a5f74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 11, 2026.
Transparency logRelease files / opennb-0.3.1-py3-none-any.whl
| Download URL | opennb-0.3.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
24b45f974747b71ee3bc209de87655175ad44e81e55ed8cac7fb919da60845a5
|
|
BLAKE2b-256 checksum How to use checksums |
1af5ea4b71e9602434a7f0ccf15cf6c333c81e8060ea724062308344a578b17e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 11, 2026.
Transparency log