Skip to content

Instantly share code, notes, and snippets.

@overcyn
Last active June 6, 2016 18:12
Show Gist options
  • Select an option

  • Save overcyn/5e781731dbfb3702fa2014e786208975 to your computer and use it in GitHub Desktop.

Select an option

Save overcyn/5e781731dbfb3702fa2014e786208975 to your computer and use it in GitHub Desktop.
# jupyter notebook --notebook-dir=/opt/ --no-browser --ip=0.0.0.0 --port=8080 &
# https://gist.github.com/davemkirk/90140b1edde8d18c8b83
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder ".", "/opt/", type: "nfs"
config.vm.network :forwarded_port, host: 2200, guest: 8080
config.vm.network "private_network", type: "dhcp"
config.nfs.map_uid = Process.uid
config.nfs.map_gid = Process.gid
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y python-dev python-pip
# http://stackoverflow.com/questions/11114225/installing-scipy-and-numpy-using-pip
sudo apt-get install -y libblas-dev liblapack-dev libatlas-base-dev gfortran
# http://stackoverflow.com/questions/25674612/ubuntu-14-04-pip-cannot-upgrade-matplotllib
sudo apt-get install -y libfreetype6-dev libxft-dev
# http://stackoverflow.com/questions/26473681/pip-install-numpy-throws-an-error-ascii-codec-cant-decode-byte-0xe2
export LC_ALL=C
sudo pip install --upgrade setuptools
sudo pip install --upgrade matplotlib numpy scipy pandas jupyter filterpy
SHELL
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment