VS Code

settings.json can be found in the .vscode folder


Double click a file to open it in a new tab in vscode


Format the code using black

Install black in the conda env

Code -> Preferences -> Settings

Ctrl + p -> "Preferences: Open Settings"

the add

"editor.formatOnSave": true

to settings.json

go to setting by typing Ctrl + ,

Search for “python formatting provider” and select “black”.

Search

Command + shift + f

Go back to previous location

control + -

Install Azure ML extension

https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-setup-vscode-extension

Save without formatting

Cmd+K S


Dev Containers: Open Folder in Container

Remote SSH

When connecting to an EC2 machine Make ~/.ssh/config like:

Host IP_ADDRESS

  HostName IP_ADDRESS

  User ubuntu

  IdentityFile ~/.aws/ray.pem

Devcontainers

To pass your GPU through add
    "runArgs": [

        "--gpus",

        "all"

    ],

to devcontainer.json