rjurney / Agile_Data_Code_2

Code for Agile Data Science 2.0, O'Reilly 2017, Second Edition
http://bit.ly/agile_data_science
MIT License
456 stars 307 forks source link

Vagrant / jupyter port forwarding #21

Closed seajosh closed 7 years ago

seajosh commented 7 years ago

Windows 10 Windows Defender: off

Problem: After provisioning a Vagrant guest and running jupyter notebook, HTTP requests weren't forwarded to Jupyter on the Vagrant guest.

Solution: jupyter was binding on localhost/127.0.0.1; therefore, vagrant couldn't forward the requests because it couldn't find a listener on the guest IP.

Here's a command for running Jupyter so it binds on vagrant's guest IP instead of localhost/127.0.0.1 :

jupyter notebook --ip=0.0.0.0

This allows vagrant's port forwarding to work correctly.

rjurney commented 7 years ago

Thanks, I added this to the boot scripts.