- JupyterHub server for multiple users
- Python libraries: numpy scipy pandas matplotlib (can be changed via
Vagrant_provision.sh
below) - Jupyter Notebook Extensions
- At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
- About 2.5GB of diskspace
- 1-2 hours of time (depends on your network speed)
- MacOSX 10.11.6
- VirtualBox 5.1.10
- Vagrant 1.8.7
$ vagrant plugin install vagrant-vbguest
$ sudo rm /opt/vagrant/embedded/bin/curl
The following commands download a Vagrant box for CentOS 7 from their server. This takes time.
$ vagrant box add centos/7
Select 2 (VirtualBox)
$ mkdir CentOS7-JupyterHub; cd CentOS7-JupyterHub
$ vagrant init centos-VAGRANTSLASH-7
$ mv Vagrantfile Vagrantfile.orig
The following command installs CentOS 7 to your virtual machine along with Python and JupyterHub. This takes time.
$ vagrant up
$ sudo vi /etc/ssh/ssh_config
# SendEnv LANG LC_*
$ vagrant ssh
[vagrant@localhost ~]$ sudo jupyterhub
- Username:
vagrant
- Password:
vagrant
- Ctrl+C to kill the process
$ vagrant ssh
[vagrant@localhost ~]$ sudo adduser new_username
[vagrant@localhost ~]$ sudo passwd new_username
[vagrant@localhost ~]$ su new_username
[new_username@localhost ~]$ cd; mkdir notebook
[new_username@localhost ~]$ jupyter contrib nbextension install --user
[new_username@localhost ~]$ exit
[vagrant@localhost ~]$ sudo jupyterhub