- Jupyter Notebook for Python 3 and R
- Jupyter Notebook Extensions
- Python libraries: numpy scipy pandas matplotlib (can be changed via
Vagrant_provision.sh
below) - R packages: Many (ggplot2, knitr, lattice, to name a few)
- At least 6-8GB of RAM (of those 4GB will be used for a virtual machine)
- About 4GB of diskspace
- 2-3 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-Jupyter-R; cd CentOS7-Jupyter-R
$ vagrant init centos-VAGRANTSLASH-7
$ mv Vagrantfile Vagrantfile.orig
The following command installs CentOS 7 to your virtual machine along with Python, Jupyter Notebook, and R. This takes time.
$ vagrant up
$ sudo vi /etc/ssh/ssh_config
# SendEnv LANG LC_*
$ vagrant ssh
[vagrant@localhost ~]$ jupyter notebook --ip=0.0.0.0 --no-browser
...
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://0.0.0.0:8888/?token=19cc5de1457673eaf66561034b8d7b639a3c969c42784481
- Copy and paste a token shown in the terminal, if asked
- Ctrl+C to kill the process
- Open a terminal page from Jupyter Notebook (
New
-Terminal
)
[vagrant@localhost ~]$ sudo R -e "install.packages(c('package_name'), dep = TRUE)"