Skip to content

Instantly share code, notes, and snippets.

@randy3k
Created February 11, 2017 21:42
Show Gist options
  • Save randy3k/50ed45d25e3a9a6b7b363980298bbc04 to your computer and use it in GitHub Desktop.
Save randy3k/50ed45d25e3a9a6b7b363980298bbc04 to your computer and use it in GitHub Desktop.
shell script running nbviewer
#!/usr/bin/env bash
trap 'kill -TERM $PID' INT TERM EXIT
cd /home/randy3k/nbviewer
python3 -m nbviewer --port=8080 --localfiles=/home/randy3k/ &
PID=$!
wait $PID
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment