JupyterHub的安装前提:
Linux/Unix系统
Python 3.4+
nodejs/npm
TLS certificate和key用于HTTPS通信
域名
Jupyter Notebook 4+
安装
JupyterHub可以通过pip或conda安装
python3 -m pip install jupyterhub
npm install -g configurable-http-proxy
python3 -m pip install notebook # needed if running the notebook servers locally
通过conda安装
conda install -c conda-forge jupyterhub # installs jupyterhub and proxy
conda install notebook # needed if running the notebook servers locally
测试安装
jupyterhub -h
configurable-http-proxy -h
启动Hub server
启动Hub server,只需要运行jupyterhub
命令。
此时可以访问https://localhost:8000
,为了让Hub server可以被多个用户登录使用,需要以特权用户,比如root启动。