googlecolab / colabtools

Python libraries for Google Colaboratory
Apache License 2.0
2.21k stars 727 forks source link

Colab: allow connections to other host than localhost #3478

Closed matthiasamberg closed 1 year ago

matthiasamberg commented 1 year ago

Is your feature request related to a problem? Please describe. I setup a custom Ubuntu VM on GCE that runs a jupyter notebook server. I cannot connect to it from a colab notebook.

Describe the solution you'd like However "connect to a local runtime" seems to check whether the URL is actually localhost or not. I'd like to be able to enter any IP/Host for Google Colab to connect to, not just localhost.

Describe alternatives you've considered

Additional context

cperry-goog commented 1 year ago

Port forwarding will work for you right? https://research.google.com/colaboratory/local-runtimes.html "Connecting to a runtime on a Google Compute Engine instance"

The Drive connection requires special handling with auth + credentials we can't support anywhere other than our managed runtimes sorry.

We've got some work in flight that will make GCP connections easier/better.