After switching to the anaconda environment with pyenv
pip install jupyter
Clarify that it contains nodejs and npm
sudo apt-get install nodejs-legacy npm
brew install node
on mac
Clone jupyter notebook and build
git clone https://github.com/jupyter/notebook.git
cd notebook
pip install --pre -e .
jupyter notebook
pip3 install ipython
Launch Ipython with ʻipython3` and use the following command
from notebook.auth import passwd
passwd()
When you enter the pass, the sha key will come out, so enter this
Write in ~ / .jupyter / jupyter_notebook_config.py
as follows
c = get_config()
#Allow connections from all IPs
c.NotebookApp.ip = '*'
c.NotebookApp.password = u'sha1:bcd259ccf...<Copy the key>'
#Browser does not launch
c.NotebookApp.open_browser = False
#Designated for a specific port(The default is 8888)
c.NotebookApp.port = 9999
After that, launch it with jupyter notebook &
and from the local browser
Login with http: // <server IP>: 9999
When you care about security, limit IP or use SSL. For more information Official
If you write nohup jupyter notebook &
in /etc/rc.local
, it will start up automatically at reboot.
Recommended Posts