How to make jupyter run in the background as systemd unit

From razwiki
Revision as of 02:50, 10 January 2022 by Razzi (talk | contribs) (Created page with "<pre> $ cat /etc/systemd/system/jupyter.service [Unit] Description=Jupyter server [Service] Type=simple ExecStart=/home/razzi/.local/bin/jupyter-notebook WorkingDirectory=/hom...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
$ cat /etc/systemd/system/jupyter.service
[Unit]
Description=Jupyter server
[Service]
Type=simple
ExecStart=/home/razzi/.local/bin/jupyter-notebook
WorkingDirectory=/home/razzi/notebooks
User=razzi
Group=razzi

[Install]
WantedBy=default.target

Then

sudo systemctl start jupyter

To get the token, see

journalctl -u jupyter.service