How to make jupyter run in the background as systemd unit: Difference between revisions

From razwiki
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 02:50, 10 January 2022

$ 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