JupyterHub, a multi-user Hub, spawns, manages, and proxies multiple instances of the single-user Jupyter notebook server. Here is a setup guide for using Pyenv + Anaconda on the AWS EC2.

AWS setup

  • Login to the AWS console, and selected EC2 Dashboard, Click [Launch instance]

  • Amazon Linux AMI 2017.03.1 (HVM), SSD Volume Type Click [Select]

  • Select the t2.micro (Free tier eligible) , Click [Next: Configure Instance Details]

  • Click [Next: Add Storage]

  • Click [Next: Add Tags]

  • Click [Next: Configure Security Group]

  • Create a new security group, change [Security group name:] as you want, Add Type, SSH, Custom TCP Rule, as below. Then Click [Review and Launch]

  • Click [Launch], Create a new key pair, Input [Key pair name] as you want, then Click [Download Key Pair], Then Click [Launch Instances]

  • Click [View Instances]

  • Wait for a while utile the Status Check will be changed to the “2/2 checks passed”. AWS EC2 setup has completed. “Public DNS (IPv4)” will be used for SSH Login.

Pyenv setup

  • ssh -i JUPYTERHUB-key-pair.pem ec2-user@[Public DNS(IPv4)]

Anaconda install

JupyterHub install

JupyterHub setup

Startup setup

JupyterHub user setup

Check whether can login

  • http://[Public DNS(IPv4)]:8000

  • Login completed

If you can see like this screen, all setup has been completed. After completed setup, you can add additional user by using “adduser” command.