Last active
March 7, 2019 13:08
-
-
Save tolbkni/f596252e70262166885470f03e35a259 to your computer and use it in GitHub Desktop.
A systemd script for user to run a jupyter notebook as daemon.
This file contains hidden or 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
# /etc/systemd/user/jupyter-notebook.service | |
[Unit] | |
Description=Jupyter Notebook Service | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/jupyter-notebook --config=%h/.jupyter/jupyter_notebook_config.py | |
[Install] | |
WantedBy=default.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please run follow command to generate jupyter notebook config:
New file will generated at
$HOME/.jupyter/jupyter_notebook_config.py
, you can change the default options. For example:How to start service:
How to make service autostart:
systemctl --user enable jupyter-notebook.service