Honestly, you’d think it would be easy to remember these four simple steps, but I never seem to. Since iPython notebook is pretty much the greatest thing since sliced bread, here’s how to run it in Vagrant/VirtualBox and access the notebook from the host machine’s browser.
- Make sure the prerequisite packages are installed in the virtual machine’s Python environment:
- Make sure your Vagrant file is forwarding port 8888 to port 8888 (or whatever you’d like to use):
- In your virtual machine, run the iPython notebook server: ipython notebook ––ip=0.0.0.0
- View the notebook in the host’s browser: http://localhost:8888