-
-
Save shovon/1d7cd058a1ce46362ad2 to your computer and use it in GitHub Desktop.
Jupyter (aka IPython Notebook) Vagrantfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "forwarded_port", guest: 8888, host: 8888 | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "256" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
sudo apt-get update | |
sudo apt-get install -y python-dev | |
sudo apt-get install -y python-pip | |
sudo apt-get install -y python-numpy python-scipy python-matplotlib python-pandas python-sympy python-nose | |
sudo pip install --upgrade ipython[all] | |
sudo mkdir -p /vagrant/notebook | |
SHELL | |
config.vm.provision "shell", run: "always", inline: <<-SHELL | |
ipython notebook --notebook-dir=/vagrant/notebook --no-browser --ip=0.0.0.0 & | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment