Skip to main content

ipython notebook link generation script

Project description

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 nbviewer 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

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

notebook-viewer-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file notebook-viewer-1.0.0.tar.gz.

File metadata

File hashes

Hashes for notebook-viewer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7998f191df7ef77e3a8efe0b627da5297057c7c300fb9b80260401f889aa28b0
MD5 df9b042d18d7339cc44f325770460c47
BLAKE2b-256 e7606557066425d7889ba2ea77f426249b0b81ea35c975713bfc8d803a40d20c

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