Skip to content

sciencepal/Local_VSCode_Remote_GCE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local_VSCode_Remote_GCE

Steps to connect and setup Local VSCode to run on Remote Google Compute Engine host:

  1. Create an ngrok token from https://ngrok.com/

  2. Open the Notebook Colab_SSH in Google Colab Open In Colab

  3. Make sure to have GPU as runtime

  4. Replace 4 variables in the Notebook -

  • ngrok token
  • password
  • Github User
  • Github email
  1. Run the notebook and enter your AuthToken for connecting gdrive

  2. In the second last cell 4 lines containing Host, Hostname, User, Port will be output - note this for use later

  3. Leave the last cell running to prevent Colab from closing session

  4. Open VSCode on local

  5. Make sure to have Settings Sync as On (Type Settings Sync in Command Palette)

  6. Install extension Remote Development on local VSCode (if not already installed)

  7. Open command palette and type Remote-SSH: Open Configuration File -> /home/$USER/.ssh/config (where $USER = your username)

  8. Paste the Host connection details (copied from step 6) and save file

  9. Open command palette and type Remote-SSH: Connect To Host and select google_colab_ssh

  10. A new VSCode window should open up with google_colab_ssh as Remote Host

  11. Accept the fingerPrint prompt; when prompted, type in your password set previously in step 4

  12. Go to extensions tab and click on the cloud button beside SSH:GOOGLE_COLAB_SSH - select extensions and install

  13. Select the Python interpreter in command palette and select ~/miniconda3/envs/ml/bin/python as your interpreter

  14. When opening a new terminal, if (base) env is activated : type conda activate ml first to start running code

You are now setup with VSCode on Local connected to Remote Google Compute Engine!!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors