Skip to main content

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: currently requires jupyter-nbconvert available on PATH[^3]. Maybe later will update to use the nbconvert library directly instead.

[^1]: Inside the OS temporary directory by default. [^2]: Also I wanted to try Typer. [^3]: Since a pipx install of nbv doesn't give this, I have removed nbconvert from the dependencies for now.

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

nbv-0.0.3.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

nbv-0.0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file nbv-0.0.3.tar.gz.

File metadata

  • Download URL: nbv-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for nbv-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f70d4f421c528852af66f5517323787f6312fdccce80297d1f1ad2494dfc9563
MD5 398e4e88a07a5ffaaa792dd35a4c00ea
BLAKE2b-256 556e531a08a9dd05c615ec93d70b260c0daf239ab62f8372aa281125e70781a3

See more details on using hashes here.

File details

Details for the file nbv-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nbv-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for nbv-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b539505b8a813b35f3f324ed6a78684c4673e36bd4369b076151ad2bdf3117b8
MD5 1288f1d26a1d3283a5a4b99d18ff484f
BLAKE2b-256 9bc065ea4f30d3a2ed71d333df6a6b2ac868e1f1a7896a992904b7f1cd446814

See more details on using hashes here.

Supported by

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