Skip to main content

nbviewer - making the world a better place, with gister

examples

# post a secret gist on github and generate an nbviewer url:
nbv

# post a secret gist on github anonymously and generate an nbviewer url:
nbv -a

# edit a gist on github and generate an nbviewer url:
nbv -e rfjw48jofwierfjipw
nbv -e https://gist.github.com/tr3buchet/rfjw48jofwierfjipw

usage

usage: nbv [-h] [-a] [-e id/url]

generate ipynb links!

optional arguments:
  -h, --help            show this help message and exit
  -a, --anonymous       gist will be anonymouseven if you have oauth
                        configured
  -e id/url, --edit id/url
                        edit a gist identified by id or url

usage - editing gists

editing gists works as such: * any files gisted with the -e flag will be added to the gist unless a file already exists in the gist by that name, in which case it will be overwritten with the current file’s contents

usage - ipython notebooks

ipython notebooks are files with a .ipynb extension. if all files specified on the commandline have this extension, a link to the http://nbviewer.ipython.org url to display your gist will be generated as well. nbviewer does not store your gist’s data permanently, but does cache it for ~10 minutes

install

pip install notebook-viewer or clone the repo and python setup.py install

gister is required so you might want to pop over and checkout the conguration, not to worry it will work out of the box, but everything will be created anonymously

if you get an InsecurePlatformWarning, pip install requests[security] to solve it. I had to install libffi-devel on my fedora 21 system to get pyOpenSSL rocking

README.rst

the README.rst document was generated from the README.md using pandoc. it’s quite tötes

sudo dnf install pandoc
pandoc README.md -s -o README.rst

Metadata

Release files for notebook-viewer 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notebook-viewer 1.0.1
File Size Uploaded Provenance
notebook-viewer-1.0.1.tar.gz 7.3 kB Without provenance Details

Release files / notebook-viewer-1.0.1.tar.gz

Download URL notebook-viewer-1.0.1.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
659fe5cf2a96ed14470200f9a915a196bb1cbf479e374c38ec9a89323e7fc735
BLAKE2b-256 checksum
How to use checksums
13b1edd7366db52a76b360250f29dcbc3a5da81d275ba73a14466ce06416d034
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for notebook-viewer 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page