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
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
Search
Command + shift + f
Go back to previous location
Go back to previous location
control + -
Install Azure ML extension
Install Azure ML extension
https://docs.microsoft.com/en-us/azure/machine-learning/tutorial-setup-vscode-extension
Save without formatting
Save without formatting
Cmd+K S
Dev Containers: Open Folder in Container
Remote SSH
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
Devcontainers
To pass your GPU through add
"runArgs": [
"--gpus",
"all"
],
to devcontainer.json