Skip to content

Instantly share code, notes, and snippets.

@davemkirk
Created April 4, 2015 20:23
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save davemkirk/90140b1edde8d18c8b83 to your computer and use it in GitHub Desktop.
Save davemkirk/90140b1edde8d18c8b83 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 pip install --upgrade ipython[all]
sudo mkdir /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