Skip to content

Instantly share code, notes, and snippets.

@Kevintso
Kevintso / gist:0deee59bffec4e5903ab32de7e82978f
Last active Dec 25, 2017
/home/ubuntu/.jupyter/jupyter_notebook_config.py
View gist:0deee59bffec4e5903ab32de7e82978f
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'
View gist:9c7e7e47e17b3d7f879a88a6075076b4
[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