Skip to content

Instantly share code, notes, and snippets.

@klingtnet
Last active July 27, 2020 16:46
Show Gist options
  • Save klingtnet/76c542613e544a13bb7ad741b53f1f73 to your computer and use it in GitHub Desktop.
Save klingtnet/76c542613e544a13bb7ad741b53f1f73 to your computer and use it in GitHub Desktop.
# ~/.config/systemd/user/jupyter.service
[Unit]
Description=An interactive python notebook server
After=network.target

[Service]
ExecStart=/usr/bin/jupyter notebook\
    --no-browser\
    --port=58080\
    --notebook-dir=~/code/jupyter-notebooks
Restart=no
PrivateTmp=true
ProtectSystem=true

[Install]
WantedBy=multi-user.target
$ systemctl --user daemon-reload
$ systemctl start --user jupyter
$ journalctl --user -fu jupyter
...
@dacresni
Copy link

oh cool you have a code home dir too!

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