https://jupyterhub.readthedocs.io/en/stable/tutorial/quickstart.html
a Linux/Unix-based system
Python 3.8 or greater. An understanding of using pip or conda for installing Python packages is helpful.
Node.js 12 or
nvm 사용한 환경 가정
nvm use v18
python3 -m pip install jupyterhub
npm install -g configurable-http-proxy
python3 -m pip install jupyterlab notebook
test
jupyterhub -h
configurable-http-proxy -h
running
server를 모든 ip 에서 허용하고 실행
jupyterhub –ip 0.0.0.0 –port 8888
spawn the server on 10.0.1.2:443 with https:
jupyterhub –ip 10.0.1.2 –port 443 –ssl-key my_ssl.key –ssl-cert my_ssl.cert
Configuration Basics
generate default config file:
jupyterhub –generate-config -f /etc/jupyterhub/jupyterhub_config.py
config 파일로 시작.
jupyterhub -f /etc/jupyterhub/jupyterhub_config.py
Hub 포트
c.JupyterHub.ip = ‘0.0.0.0’
c.JupyterHub.port = 8787
사용자
c.Authenticator.allowed_users = {‘qkboo’, ‘goodyoung’}
c.Authenticator.admin_users = {‘qkboo’}
c.Spawner.notebook_dir = ‘~/Jupyter_Notebooks’
사용자 노트북 디렉토리 지정
https://jupyterhub.readthedocs.io/en/stable/tutorial/getting-started/spawners-basics.html
c.Spawner.notebook_dir = ‘~/notebooks’
sample configure
1 |
|