Skip to content

Instantly share code, notes, and snippets.

@Gateswong
Forked from amitsaha/ipython-notebook.service
Last active August 29, 2015 14:07
Show Gist options
  • Save Gateswong/d727886c000b43ddf138 to your computer and use it in GitHub Desktop.
Save Gateswong/d727886c000b43ddf138 to your computer and use it in GitHub Desktop.
# README:
# Copy this file to /usr/lib/systemd/system/
# sudo systemctl daemon-reload
# systemctl enable ipython-notebook
# systemctl start ipython-notebook
# The WorkingDirectory and ipython-dir must exist
# If you don't want anything fancy, go to http://127.0.0.1:8888 to see your notebook
# wheneber you want it
[Unit]
Description=IPython notebook viewer
[Service]
Type=simple
PIDFile=/var/run/ipython-notebook-viewer.pid
ExecStart=/usr/bin/python -m nbviewer --no-cache --port 88
User=gene
Group=gene
WorkingDirectory=/root/app/nb-yun
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment