Visual Studio Code (VSCode)
Download and install VSCode
- Download VSCode from https://code.visualstudio.com/ for your particular operating system
- Install VSCode
Install extensions
- Azure Machine Learning
- AWS Toolkit
- Microsoft Python
Use the built-in command palette
- Windows: F1 or Ctrl+Shift+P
- MacOS: F1 or Command+Shift+P
Use the built-in terminal
- Ctrl+Shift+Backtick(`)
Use VSCode with Azure Machine Learning
Log in to Azure
For the best experience, we recommend signing out of Azure first!
To sign out:
- Open the command palette
- Type or find
Azure: Sign Out
To sign back in:
- Open the command palette
- Type or find
Azure: Sign In
and select your Georgetown Azure credentials
You’ll know you are signed to the right Azure account because if you click on the Azure logo on the left-hand side, you will see your Subscription show up in the Machine Learning Panel at the top left. If you click on the >
icon to expand, you’ll also see the AzureML workspace you created.
Start (or stop) a compute instance
- Use the
>
icon to expand the elements of your AzureML workspace. - Keep expanding:
Workspace
>Compute
>Compute instances
until you see your compute instance(s) - You will see the status of the compute instance
- Right click on the compute instance to start (or stop) the instance
Create a remote connection to the AzureML compute instance
- Make sure you have a running compute instance
- Right click on the compute instance and click on Connect in New Window. A new VSCode window will open up and you’ll see some activity. Once the remote connection is created, you will see the name of your compute instance in a different color background in the bottom-right.
- You now have established a remote connection
- You can ignore the notifications in the bottom right
Clone a repository into the compute instance
You will be able to use the integrated git in VSCode to clone, commit, push and pull the work in your assignment repositorues. Please follow this workflow (there are things are are specific to AzureML, but this will also work when using VSCode locally)
Before you clone your GitHub repository, make sure you are logged in to GitHub in a browser and have the http
URL of your repo copied into the clipboard.
- Open the command palette
- Type or find
Git: Clone
- Paste the repo URL into the box and select clone form URL from the dropdown
- Make sure you select this path on the AzureML compute instance so the repo is stored in the persistent AzureML storage and not in the VM filesystem:
/home/azureuser/cloudfiles/code/Users/<NETID>/
- Click OK
You will now see your repository as a directory when you expand the Users directory in the file browser.