Skip to content

Instantly share code, notes, and snippets.

@abelardojarab
Created October 22, 2020 03:58
Show Gist options
  • Save abelardojarab/6bda98b26329c4839b47f4090451eab0 to your computer and use it in GitHub Desktop.
Save abelardojarab/6bda98b26329c4839b47f4090451eab0 to your computer and use it in GitHub Desktop.
systemd service for Jupyter notebook (pyenv + pipenv w/ CUDA libraries)
[Unit]
Description=Jupyter Notebook
After=network-online.target
[Service]
Type=simple
ExecStart=/home/ubuntu/.pyenv/shims/pipenv run jupyter notebook
Environment="LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/lib:/usr/lib:/usr/local/cuda/extras/CUPTI/lib64"
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment