Couldn't run Jupyter Notebook on external ip address
felixilie opened this issue · 0 comments
The following was probably due to firewall at my local university's WiFi.
Managed to solve the following by tunneling to local host using:
gcloud compute ssh --zone "us-west1-b" "<YOUR_VM_NAME>" --project "<YOUR_PROJECT_ID>" -- -L 8888:localhost:8888
(first port is where the session should run on remote, second port is where it will be accessible on local)
On the SSH session run jupyter notebook
and you will be able access he notebook from your browser by visiting localhost:8888
BTW, Gcloud's AI Platform Deep Learning VM Image instance starts JupyterLab session every time when initialized at port 8080 and can be accessed directly by:
gcloud compute ssh --zone "us-west1-b" "<YOUR_VM_NAME>" --project "<YOUR_PROJECT_ID>" -- -L 8080:localhost:8080
My problem was that it will open from /opt/deeplearning/workspace/tutorials
which I didn't figure out how to change.