Skip to content

Instantly share code, notes, and snippets.

@r-darwish
Created March 6, 2018 15:23
Show Gist options
  • Save r-darwish/42042b204aa562b3a8f742056b771079 to your computer and use it in GitHub Desktop.
Save r-darwish/42042b204aa562b3a8f742056b771079 to your computer and use it in GitHub Desktop.
Jupyterlab as a systemd service
[Unit]
Description=Jupyter Notebook
[Service]
Type=simple
ExecStart=/home/roeyd/Notebook/.env/bin/jupyter lab --port 9090
WorkingDirectory=/home/roeyd/Notebook
[Install]
WantedBy=default.target
@willprice
Copy link

willprice commented Feb 28, 2020

To install

$ mkdir -p ~/.config/systemd/user
$ wget "https://gist.github.com/r-darwish/42042b204aa562b3a8f742056b771079/raw/0ecf28461b26d32b13c97de786d1096a2459d6de/jupyter.service" -O ~/.config/systemd/user/jupyterlab.service
$ "$EDITOR" ~/.config/systemd/user/jupyterlab.service   # edit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment