Read-only viewing of Jupyter notebooks in the web browser.
Project description
nbv
Read-only Jupyter Notebook viewing using nbconvert
.
Invoking
nbv notebook.ipynb
converts the notebook to HTML[^1] and opens this HTML file in the default web browser.
You can get a similar result with just
nbconvert notebook.ipynb --to html --post serve
Note that this (and nbv
) doesn't require a full Jupyter installation (e.g. JupyterLab) in order to run.
But nbv
has additional benefits[^2]:
- doesn't pollute the notebook location with HTML (unlike the above)
- no server, just open the HTML file in browser
- simple CLI, exposing only a few
nbconvert
options
Note: nbv
will use the nbconvert
library if installed, otherwise it will fall back to the jupyter-nbconvert
command.
uv examples
Use jupyter-nbconvert
command:
uvx nbv notebook.ipynb
Use nbconvert
library:
uvx --with nbconvert nbv notebook.ipynb
uvx --from 'nbv[complete]' nbv notebook.ipynb
uv tool install --with nbconvert nbv
[^1]: Inside the OS temporary directory by default. [^2]: Also I wanted to try Typer.
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
Built Distribution
File details
Details for the file nbv-0.0.5.tar.gz
.
File metadata
- Download URL: nbv-0.0.5.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
94d934edcdd3c93881fcc854858b05370df867198c2d8858cbba63fccc2acb20
|
|
MD5 |
69620b63e6547b7a61afeb1f92440a49
|
|
BLAKE2b-256 |
d764eaa80086faf75e76ab57572841b7fddf19026c8219d5036566090f2ba68d
|
File details
Details for the file nbv-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: nbv-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6d63d8882009e7aa070aa07b06781be9bd14aebe64ee629e02a706ce11654f71
|
|
MD5 |
544cdb02f049cf7bc955a06e349b92a1
|
|
BLAKE2b-256 |
e3da51e7bbac89df27feb41f90adb6ac6b1b5717fbf4b1f26196b23377b1399f
|