Skip to content

Instantly share code, notes, and snippets.

@jezzarax
Last active January 28, 2016 22:58
Show Gist options
  • Save jezzarax/62e58be9d18aa5b4288f to your computer and use it in GitHub Desktop.
Save jezzarax/62e58be9d18aa5b4288f to your computer and use it in GitHub Desktop.
IPython-tensorflow Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
sudo apt-get update
sudo apt-get install -y python-pip python-dev python-psycopg2
sudo apt-get install -y build-essential python-dev
sudo apt-get install -y python-matplotlib
sudo apt-get install -y libssl1.0.0
sudo pip install --upgrade ipython-sql jupyter
sudo pip install --upgrade jinja2 tornado jsonschema pyzmq
wget -nv https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.6.0-cp27-none-linux_x86_64.whl
sudo pip install --upgrade tensorflow-0.6.0-cp27-none-linux_x86_64.whl
nohup ipython notebook --ip=0.0.0.0 &
SCRIPT
Vagrant.configure(2) do |config|
config.vm.define "ipy" do |ipy|
ipy.vm.box = "debian/jessie64"
ipy.vm.provider "virtualbox" do |vb|
vb.gui = false
vb.memory = "4096"
end
ipy.vm.network "forwarded_port", guest: 8888, host: 8888
ipy.vm.provision "shell", inline: $script
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment