前提
系统:Ubuntu 16.04
软件环境:
Python 3.4 +
nodejs/npm
HTTPS通信的TLS证书及key
域名
Jupyter Notebook 4+
安装
安装nodejs/npm
sudo apt-get install npm nodejs-legacy
JupyterHub可以通过pip安装,而proxy可以通过npm安装
python3 -m pip install jupyterhub
npm install -g configurable-http-proxy
python3 -m pip install notebook
conda安装jupyterhub及proxy
conda install -c conda-forge jupyterhub
conda install notebook
验证安装
jupyterhub -h
configurable-http-proxy -h
启动Hub server
jupyterhub
访问http://localhost:8000/
,并通过unix凭证登录
当允许多个用户登录Hub server时,需要通过特权用户启动jupyterhub
sudo jupyterhub
【参考】
1。 jupyterhub:quickstart:http://jupyterhub.readthedocs.io/en/latest/quickstart.html