Skip to main content

Open Jupyter notebooks from GitHub repositories or URLs directly in Jupyter.

Project description

opennb 📓

PyPI Python Versions

📓 Open Jupyter notebooks from GitHub repositories or URLs directly in Jupyter. Very useful in conjunction with uv run.

:books: Table of Contents

Installation

Install using pip:

pip install opennb

Or using uv:

uv pip install opennb

Usage

Open a notebook from a GitHub repository:

opennb owner/repo#path/to/notebook.ipynb

Specify a branch:

opennb owner/repo@branch#path/to/notebook.ipynb

Open directly from a URL:

opennb https://example.com/notebook.ipynb

Use with uv run to install dependencies and open a notebook in one go:

uv run --with owner/repo opennb owner/repo#path/to/notebook.ipynb

For example, to open a notebook from the pipefunc repository and ensure its dependencies are installed:

uv run --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 scipy/scipy#doc/source/tutorial/basic.ipynb

Open from a specific branch:

opennb pandas-dev/pandas@main#doc/source/getting_started/intro_tutorials/01_table_oriented.ipynb

Open with custom Jupyter settings:

opennb owner/repo#notebook.ipynb --NotebookApp.token='my-token'

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 uv run for dependency management

License

MIT License

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

opennb-0.2.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opennb-0.2.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file opennb-0.2.0.tar.gz.

File metadata

  • Download URL: opennb-0.2.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for opennb-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e5a075bf697ddcf752fcebfc12fc9ce7787a432d20ad0f67c84456d7ebb9283a
MD5 5fbec36de1b2f69f44f33d0f4abe5bfc
BLAKE2b-256 f5e0ff503b3a0d86254b88ef0badccac681d64a51ae8e6e5a95b976322e46120

See more details on using hashes here.

Provenance

The following attestation bundles were made for opennb-0.2.0.tar.gz:

Publisher: release.yml on basnijholt/opennb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file opennb-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: opennb-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for opennb-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d056524b58e457999ebcbe60800501a52c2899c93ae92290afd51cd3ce17ada6
MD5 0a0a08d31fd2b06765b22e946858dea0
BLAKE2b-256 87de99d003d5ee2b9466f61c89800e915d177b7382e27f3ce20184f0b253f795

See more details on using hashes here.

Provenance

The following attestation bundles were made for opennb-0.2.0-py3-none-any.whl:

Publisher: release.yml on basnijholt/opennb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page