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,64 +55,39 @@ 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
@@ -118,35 +96,28 @@ Find a value for `<azure-subscription-id>` in the [subscriptions list in the Azu
118
96
```python
119
97
from azureml.core import Workspace
120
98
ws = Workspace.create(name='myworkspace',
121
-
subscription_id='<azure-subscription-id>',
99
+
subscription_id='<azure-subscription-id>',
122
100
resource_group='myresourcegroup',
123
101
create_resource_group=True,
124
-
location='eastus2'# or other supported Azure region
102
+
location='eastus2'# or other supported Azure region
125
103
)
126
104
```
127
105
128
106
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
107
130
108
To see the workspace details, such as associated storage, container registry, and key vault, enter the following code.
Save the details of your workspace in a configuration file into the current directory. This file is called 'aml_config\config.json'.
139
116
140
117
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