DEV Community

hub
hub

Posted on

methods: Is it possible to connect vscode (on a local machine) with Google Colab (the free service) runtime?

I've just found another method without using ssh.

# Install jupyterlab and ngrok
!pip install jupyterlab==2.2.9 pyngrok -q
# Run jupyterlab in background
!nohup jupyter lab --ip=0.0.0.0 &

# Make jupyterlab accessible via ngrok
from pyngrok import ngrok
print(ngrok.connect(8888))

It will then show a JupyterLab URL

http://f1fe6fb39df6.ngrok.io  # for example

Top comments (1)

Collapse
 
digital_hub profile image
hub

i allways wondered how to connect google-colab with a local machine

there are several methods possible