-[] Change jupyter port to 9999 -[] Password login method
$ sudo pip install --upgrade pip
$ sudo pip install jupyter
$ ipython
In [1]: from IPython.lib import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]:~~~~~~Hashed password ~ ~ ~ ~
Out[2]:exit
$ mkdir ~/jupyter_dir
$ jupyter notebook --generate-config
Writing default config to: ~/.jupyter/jupyter_notebook_config.py
$ vi + ~/.jupyter/jupyter_notebook_config.py
jupyter_notebook_config.py
Add the following to the last line
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 9999
c.NotebookApp.password = u'<Created hash key>'
c.NotebookApp.notebook_dir = '<Created directory>'
$ cd ~
$ nohup jupyter notebook >> jupyter.log 2>&1 &
If there is an error, you can find out by looking at (~ / jupyter.log)
http://IPアドレス:9999
Recommended Posts