Accessing a Jupyter Notebook (iPython, iTorch) in browser from within a VirtualBox VM such as a Docker boot2docker (Mac)
When running a jupyter notebook on a virtual machine using VirtualBox (with either iTorch or iPython kernel) make sure you start it with the proper options.
jupyter notebook --ip=0.0.0.0
If you use no GUI (command line access), you may alternatively enter:
jupyter notebook --ip=0.0.0.0 --no-browser
The notebook should be available at the IP address of the virtual machine. In the case of boot2docker it might be http://192.168.99.100:8888 (run `docker-machine ip` to find out).
If you like to reach the notebook on localhost (127.0.0.1:8888), make sure the virtual machine (VM) running on VirtualBox has port 8888 open. If that is not the case, when the VM is suspended/stopped, go to Network/Adapter 1 (NAT)/Port Forwarding and add a new rule with Host IP=127.0.0.1, Host Port = 8888 (or the one you prefer) and Guest Port=8888.