Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 1.18 KB

gcp_ssh_vscode.md

File metadata and controls

10 lines (7 loc) · 1.18 KB

Using GCP via SSH + VScode

First setup your GCP account and upload your ssh keys. Next you should connect to your GCP VM via VScode: just click on the green icon on the lower left corner, open a new ssh host, and type username@ip-address. Once connected, you can clone your github repo, edit your source code in a proper IDE, and open a jupyter notebook inside VScode for interactive development. (Use %run foo.py to run your script file; when it's done, all the global variables it created will be accessible from the notebook.) When you're done developing, save all your code back to github. (Artefacts can be stored using Google Cloud storage buckets.) See the screenshot below for an example. You can also open tensorboard inside VScode, and it will handle port forwarding, etc.