-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathenv_setup.py
More file actions
27 lines (22 loc) · 772 Bytes
/
env_setup.py
File metadata and controls
27 lines (22 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!pip install --upgrade azureml-sdk[notebooks]
import azureml.core
from azureml.core import Workspace
from azureml.core import ComputeTarget, Datastore, Dataset
print("Ready to use Azure ML", azureml.core.VERSION)
ws = Workspace.from_config()
print(ws.name, "loaded")
#View resources in the workspace
print("Compute Targets:")
for compute_name in ws.compute_targets:
compute = ws.compute_targets[compute_name]
print("\t", compute.name, ":", compute.type)
print("Datastores:")
for datastore in ws.datastores:
print("\t", datastore)
print("Datasets:")
for dataset in ws.datasets:
print("\t", dataset)
print("Web Services:")
for webservice_name in ws.webservices:
webservice = ws.webservices[webservice_name]
print("\t", webservice.name)