Access to remote server. and we user PYENV for set up python environment.
$ ssh your_remote_server
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ vim .zshrc
export PYENV_ROOT=$HOME/.pyenv
export PATH=$PYENV_ROOT/bin:$PATH
eval "$(pyenv init -)"
Read shell setting.
$ source .zshrc
Install Python and Jupyter.
$ pyenv install 3.5.1
$ pyenv global 3.5.1
$ easy_install pip
$ pip install jupyter
$ jupyter notebook --generate-config
$ ipython ## set password you jupyternotebook server
In [1]: from notebook.auth import passwd
In [2]: passwd()
# generated hash. copy hash value for password setting to you remote server.
$ netstat -an |grep ESTABLISHED # search ip-address on your remote server
$ vim .jupyter/jupyter_notebook_config.py
.jupyter/jupyter_notebook_config.py
#------------------------------------------------------------------------------
# NotebookApp configuration
#------------------------------------------------------------------------------
# Set ip to '*' to bind on all interfaces (ips) for the public server
c.NotebookApp.ip = '*'
c.NotebookApp.password = u'sha1:yourcopiedhasuvalue'
c.NotebookApp.open_browser = False
# It is a good idea to set a known, fixed port for server access
c.NotebookApp.port = 9999
$ jupyter notebook
$ open http://your.ipaddress-on-remoteserver:portnumber
$ pip install jupyterhub
$ jupyterhub --generate-config # not make dotfiles directory. make the current directory.
$ vim jupyterhub_config.py # not dotfiles directory.
$ jupyterhub --port 9999 # set port number
Admin View