You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/concept-azure-machine-learning-v2.md
+25-22Lines changed: 25 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,29 +38,32 @@ This document provides a quick overview of these resources and assets.
38
38
39
39
### [Python SDK](#tab/sdk)
40
40
41
-
To use the Python SDK code examples in this article, create a connection to your Azure Machine Learning subscription. The examples all rely on `ml_client`.
42
-
43
-
```python
44
-
# import required libraries
45
-
from azure.ai.ml import MLClient
46
-
from azure.ai.ml.entities import Workspace
47
-
from azure.identity import DefaultAzureCredential
48
-
49
-
# Enter details of your subscription
50
-
subscription_id ="<SUBSCRIPTION_ID>"
51
-
resource_group ="<RESOURCE_GROUP>"
52
-
53
-
# get a handle to the subscription (use this if you haven't created a workspace yet)
To use the Python SDK code examples in this article:
42
+
43
+
1. Install the [Python SDK v2](https://aka.ms/sdk-v2-install)
44
+
2. Create a connection to your Azure Machine Learning subscription. The examples all rely on `ml_client`. All examples also require `ml_client` to include the workpace name, other than the example that shows how to create a workspace.
45
+
46
+
```python
47
+
# import required libraries
48
+
from azure.ai.ml import MLClient
49
+
from azure.ai.ml.entities import Workspace
50
+
from azure.identity import DefaultAzureCredential
51
+
52
+
# Enter details of your subscription
53
+
subscription_id ="<SUBSCRIPTION_ID>"
54
+
resource_group ="<RESOURCE_GROUP>"
55
+
56
+
# get a handle to the subscription (use this if you haven't created a workspace yet)
To use the Azure CLI code examples in this article, you need to have the Azure CLI installed and configured. You can install the Azure CLI from the [Azure CLI documentation](/azure/install-azure-cli).
66
+
To use the Azure CLI code examples in this article, you need to have the Azure CLI installed and configured. You can install the Azure CLIfrom the [Install andset up the CLI (v2)](how-to-configure-cli.md).
64
67
65
68
### [Studio](#tab/azure-studio)
66
69
@@ -257,13 +260,13 @@ In custom environments, you're responsible for setting up your environment and i
257
260
258
261
### [Python SDK](#tab/sdk)
259
262
260
-
To create an environment using Python SDK v2, see [Create an envirnment](how-to-manage-environments-v2.md&tabs=python#create-an-environment).
263
+
To create an environment using Python SDK v2, see [Create an envirnment](how-to-manage-environments-v2.md?tabs=python#create-an-environment).
261
264
262
265
This [Jupyter notebook](https://github.com/Azure/azureml-examples/blob/main/sdk/python/assets/environment/environment.ipynb) shows more ways to create custom environments using SDK v2.
263
266
264
267
### [Azure CLI](#tab/cli)
265
268
266
-
To create an environment using CLI v2, see [Create an envirnment](how-to-manage-environments-v2.md&tabs=cli#create-an-environment).
269
+
To create an environment using CLI v2, see [Create an envirnment](how-to-manage-environments-v2.md?tabs=cli#create-an-environment).
267
270
268
271
For more information, see [environment YAML schema](reference-yaml-environment.md).
0 commit comments