Skip to content

Instantly share code, notes, and snippets.

[init]
Description=Jupyter tensorflow_p36
After=network.target
[Service]
Tpye=simple
PIDFile=/run/jupyter.pid
WorkingDirectory=/home/ubuntu
#EnvironmentFile=/home/ubuntu/anaconda3/envs/tensorflow_p36/bin/jupyter-notebook
ExecStart=/home/ubuntu/anaconda3/envs/tensorflow_p36/bin/jupyter-notebook --config=/home/ubuntu/.jupyter/jupyter_notebook_config.py
#ExecStart=/usr/local/bin/jupyter-notebook --config=/home/ubuntu/.jupyter/jupyter_notebook_config.py
@Kevintso
Kevintso / gist:0deee59bffec4e5903ab32de7e82978f
Last active December 25, 2017 23:17
/home/ubuntu/.jupyter/jupyter_notebook_config.py
import os
c = get_config()
os.environ['LD_LIBRARY_PATH'] = '/usr/local/cuda-8.0/lib64:usr/local/cuda-8.0/lib64/libcudart.so.8.0'
c.Spawner.env.update('LD_LIBRARY_PATH')
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'sha1:518749bbebf8:d99de5f67392afbcd6c82bcaa343eda7cde62d56'