ptwobrussell / Mining-the-Social-Web

The official online compendium for Mining the Social Web (O'Reilly, 2011)
http://bit.ly/135dHfs
Other
1.21k stars 490 forks source link

Running iPython Notebook for 1st Edition #57

Closed terminator1 closed 11 years ago

terminator1 commented 11 years ago

I have successfully downloaded the repo for the 1st edition and got the iPython notebook in Linux started.

I am using the vagrant instance from 2nd edition. As a result, upon initial startup of iPython notebook on VM, it says there is a conflict with localhost:8888 and redirected to localhost:8889

Problem is, I can't access localhost:8889 on the browser on my host machine.
I can't seem to find the shadow directory on my host machine to modify bootstrap.sh either.

Below is an image of the initial startup. Any insight is appreciated. Thanks!

ipython_prob

ptwobrussell commented 11 years ago

Vagrant isn't able to map to port 8888 because you have something else running on that port. You can figure out what's running on it by just going to http://localhost:8888 in your browser. If nothing is running on that port, then it's likely that somehow the virtual machine is just trying it up. Not sure off the top of my head how you would figure that out in Windows, but on Linux you could type something like "lsof -i :8888" and get the process that is running and kill it. Maybe you can do something similar through a Windows GUI. Would have to look into it more, but start with what you know and work from there.

As far as hitting port 8889 - you'll have to modify the Vagrantfile to pass through ports to your host machine. Once you open that file up and look at it, it should be pretty obvious what to do - just copy/paste/modify one line in there.

Hope that helps.

ptwobrussell commented 11 years ago

I think we've worked though this by now and it is safe to close. Re-open if you feel differently.