Skip to content

Instantly share code, notes, and snippets.

@dqtweb
Forked from r-darwish/jupyter.service
Created April 26, 2020 10:30
Show Gist options
  • Save dqtweb/0f3168e820202cbf4caf2cd34e36fd74 to your computer and use it in GitHub Desktop.
Save dqtweb/0f3168e820202cbf4caf2cd34e36fd74 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
@dqtweb
Copy link
Author

dqtweb commented Apr 26, 2020

$ 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