Opening Jupyter notebook: server not responding

I’m about 27 minutes into the Lesson 1 video. When I type “jupyter notebook” I get:

[I 00:41:08.612 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[I 00:41:09.259 NotebookApp] Serving notebooks from local directory: /home/ubuntu/courses/deeplearning1/nbs
[I 00:41:09.259 NotebookApp] 0 active kernels
[I 00:41:09.260 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=30653bf5f0e552a8503ec69bf3955be3f5d2f3ef4f48b864
[I 00:41:09.260 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[W 00:41:09.260 NotebookApp] No web browser found: could not locate runnable browser.
[C 00:41:09.260 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?token=30653bf5f0e552a8503ec69bf3955be3f5d2f3ef4f48b864

I put http://localhost:8888/?token=30653bf5f0e552a8503ec69bf3955be3f5d2f3ef4f48b864 into Safari and Safari says the server is not responding. But maybe I don’t need to do that because I already opened a Jupyter notebook once during the “AWS Deep Learning setup” video by going to ec2-34-215-128-150.us-west-2.compute.amazonaws.com:8888 (but that was with p2 and now I’m using t2—I don’t know if it matters, because I’m not sure if the message means “first time” for this instance or “first time” ever).

In any case I skipped that part and did what the Lesson 1 video said and went to 34.215.62.245:8888 in a browser (using the IP address that resulted from aws-get-t2). And again Safari says the server isn’t responding. What have I done wrong?

Have you setup your jupyter notebook to be accessible externally? It needs to be configured explicitly to accept outside connections.

http://docs.aws.amazon.com/mxnet/latest/dg/setup-jupyter-configure-server.html

Even with it setup I found that I needed to create an ssh tunnel for localhost in order to be able to connect to it.

I don’t think I did anything differently, but it works now.