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
> Code in this article was tested with Azure Machine Learning SDK version 0.1.74
39
+
37
40
If you don’t have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
38
41
39
42
@@ -52,78 +55,45 @@ Before you install the SDK, we recommend that you create an isolated Python envi
52
55
53
56
Open a command-line window. Then create a new conda environment named `myenv` with Python 3.6.
54
57
55
-
```sh
58
+
```shell
56
59
conda create -n myenv -y Python=3.6
57
60
```
58
61
59
62
Activate the environment.
60
63
61
-
```sh
64
+
```shell
62
65
conda activate myenv
63
66
```
64
67
65
68
### Install the SDK
66
69
67
70
In the activated conda environment, install the SDK. The below command installs the core components of the Machine Learning SDK. It also installs a Jupyter Notebook server in the `myenv` conda environment. The installation takes a few minutes to finish, depending on the configuration of your machine.
Create a new Azure resource group and a new workspace.
115
93
116
94
Find a value for `<azure-subscription-id>` in the [subscriptions list in the Azure portal](https://ms.portal.azure.com/#blade/Microsoft_Azure_Billing/SubscriptionsBlade). Use any subscription in which your role is owner or contributor.
117
95
118
-
```python
119
-
from azureml.core import Workspace
120
-
ws = Workspace.create(name='myworkspace',
121
-
subscription_id='<azure-subscription-id>',
122
-
resource_group='myresourcegroup',
123
-
create_resource_group=True,
124
-
location='eastus2'# or other supported Azure region
Executing the preceding code might trigger a new browser window for you to sign into your Azure account. After you sign in, the authentication token is cached locally.
129
99
@@ -139,14 +109,8 @@ Save the details of your workspace in a configuration file into the current dire
139
109
140
110
This workspace configuration file makes it easy to load this same workspace later. You can load it with other notebooks and scripts in the same directory or a subdirectory.
0 commit comments