-
-
Save MiXaiLL76/18f4d64963447ec46d0d0ecb73430f5e to your computer and use it in GitHub Desktop.
A systemd script for running a Jupyter notebook server.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up a Jupyter Lab remote server raspberry | |
[Unit] | |
Description=Jupyter Lab | |
[Service] | |
Type=simple | |
PIDFile=/run/jupyter.pid | |
ExecStart=/home/pi/.local/bin/jupyter-lab --config=/home/pi/.jupyter/jupyter_notebook_config.py | |
User=pi | |
Group=pi | |
WorkingDirectory=/home/pi/ | |
Restart=always | |
RestartSec=10 | |
#KillMode=mixed | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting up a Jupyter Lab remote root ubuntu server
/etc/systemd/system/jupyter.service
[Unit]
Description=Jupyter Lab
[Service]
Type=simple
PIDFile=/run/jupyter.pid
ExecStart=/usr/local/bin/jupyter-lab --config=/root/.jupyter/jupyter_notebook_config.py --allow-root
User=root
Group=root
WorkingDirectory=/root
Restart=always
RestartSec=10
#KillMode=mixed
[Install]
WantedBy=multi-user.target