Last active
December 23, 2015 15:59
-
-
Save amitsaha/6658720 to your computer and use it in GitHub Desktop.
Run IPython notebook under systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
[Service] | |
Type=simple | |
PIDFile=/var/run/ipython-notebook.pid | |
ExecStart=/usr/bin/ipython notebook --no-browser --pylab=inline --ipython-dir=/home/gene/work/notebooks/config | |
User=gene | |
Group=gene | |
WorkingDirectory=/home/gene/work/notebooks | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment