googlecolab / jupyter_http_over_ws

Apache License 2.0
267 stars 56 forks source link

Connecting to local runtime via Google Cloud SDK #30

Open markmorr opened 2 years ago

markmorr commented 2 years ago

Hi,

I am attempting to connect to a VM instance I started from GCP so that I can take advantage of a GPU in Google Colab. I am following the instructions here. I also attempted solutions from the issues raised here and here but they didn't work--I think my problem is somewhat different. I am using the following commands First in Google Cloud SDK: gcloud compute ssh --zone "us-central1-a" [instance_name] --project [project_name] -- -L 8889:locahost:8889 Then, in the instance that starts up: jupyter serverextension enable --py jupyter_http_over_ws jupyter notebook --NotebookApp.allow_origin="https://colab.research.google.com" --port=8889 --NotebookApp.port_retries=0 --no-browser

After those, my instance generates the url as expected, but when I paste it into my browser it says 'The site can't be reached.' (Connection reset error). Any help or suggestions would be greatly appreciated!