Skip to content

Instantly share code, notes, and snippets.

@stevenbeeckman
Last active October 29, 2022 16:11
Show Gist options
  • Save stevenbeeckman/beffbbd867b93575ac48 to your computer and use it in GitHub Desktop.
Save stevenbeeckman/beffbbd867b93575ac48 to your computer and use it in GitHub Desktop.
Setting up IPython Notebook inside of Vagrant
sudo apt-get update
sudo apt-get install build-essential python-dev
sudo apt-get install python-matplotlib
sudo apt-get install python-pip
sudo pip install ipython-sql
sudo pip install --upgrade jinja2 tornado jsonschema pyzmq
sudo apt-get install python-mysqldb
# let's start ipython notebook
ipython notebook --ip=0.0.0.0 # port-forwarding doesn't work without this --ip flag
# IPython Notebook now accessible on http://localhost:8888/ on the host
vagrant add box hashibox/precise32
vagrant init
# Add config.vm.network "forwarded_port", guest: 8888, host: 8888 to Vagrantfile
vagrant up
vagrant ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment