|# After Ubuntu 16.04, Systemd becomes the default.|
|# It is simpler than https://gist.github.com/Doowon/38910829898a6624ce4ed554f082c4dd|
Following the instructions of https://www.digitalocean.com/community/tutorials/how-to-configure-a-linux-service-to-start-automatically-after-a-crash-or-reboot-part-1-practical-examples, place this file in:
sudo systemctl enable jupyter.service
Reload the systemd daemona and restart the service
sudo systemctl daemon-reload sudo systemctl restart jupyter.service
why occurs this error, with or without config.py
Hi @Kevintso ,
Hope this helps you.
In my case I have a
(last part is for log, you can go without it)
I am with CentOS 7. After this change this service finally gets working. So maybe the OP lacks it?
If encountering the following errors :
Solution : use absolute paths in your config file.
I suggest putting the service file in
Thanks @sandtler, that is a good point - I have updated the instructions in the first comment.
If you need environment variables for Tensorflow GPU work, and .bashrc usually does the job for you, you need to somehow make those available to the Jupyter service, or else Notebooks that need the GPU won't be able to see it.
Not sure this is the best way, but it's the way I got it to work: