Skip to content

Instantly share code, notes, and snippets.

@shovon
Forked from davemkirk/Vagrantfile
Last active January 21, 2018 16:07
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shovon/1d7cd058a1ce46362ad2 to your computer and use it in GitHub Desktop.
Save shovon/1d7cd058a1ce46362ad2 to your computer and use it in GitHub Desktop.
Jupyter (aka IPython Notebook) Vagrantfile
# -*- 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