-
-
Save khangvan/48a4df2b6e0cfb29be7ce8f2fce611c6 to your computer and use it in GitHub Desktop.
Jupyter lab auto start or restart ( crash or server stopped ) on nvidia jetson nano or ubuntu.
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
# create a file and (name your wish) , then add this content to the file. | |
# OR | |
# sudo vim /etc/systemd/system/jupyter-lab.service | |
# paste code below | |
# Esc , shift z z | |
[Unit] | |
Description=Start Jupyter Lab Server at Boot | |
[Service] | |
Type=simple | |
ExecStart=/home/$USER/<python_env>/bin/jupyter lab --allow-root --no-browser --config=/home/$USER/.jupyter/jupyter_notebook_config.py | |
WorkingDirectory=$HOME | |
Restart=always | |
RestartSec=10 | |
# sudo systemctl enable jupyter-lab.service | |
# sudo systemctl start jupyter-lab.service | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment