-
Book Overview & Buying
-
Table Of Contents
Azure Machine Learning Engineering
By :
VS Code is an IDE designed to work with Windows, macOS, or Linux. Its Git integration and debugging features make it a natural selection for a code editor. VS Code has an extension for working directly with your AMLS environment to build, train, and deploy ML models. In order to leverage this powerful tool, install and configure VS Code by following these steps:
Azure Machine Learning as shown in Figure 1.34, and select Install:
Figure 1.34 – Selecting the VS Code extension
>Azure: Sign In
A new browser window will open for you to supply your credentials to enable sign-in.
Azure ML: Set Default Workspace. This command will walk you through selecting your subscription and your workspace:>Azure ML: Set Default Workspace
Figure 1.35 – Azure icon
Figure 1.36 – Connect to compute instance
Figure 1.37 – Opening the notebook in VS Code
azureml_py310_sdkv2 kernel:
Figure 1.38 – Select Kernel
print statement as shown in Figure 1.39:
Figure 1.39 – Writing code
Saving the notebook within VS Code will save the notebook to your AMLS workspace.
In this section, you have installed VS Code, the AML VS Code extension, and connected to your compute instance in your AMLS workspace to run your code. VS Code provides IntelliSense, the ability to run and debug your code, along with built-in Git integration. Combining these features with integration into your AMLS workspace makes this the ideal choice for development.