From d904a103a050c6f3ee6db261a498ba8b1b32d7e1 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Tue, 10 Dec 2024 15:34:03 -0800 Subject: [PATCH] formatting, more re-use --- source/cloud/azure/azureml.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/cloud/azure/azureml.md b/source/cloud/azure/azureml.md index 40a9380..c032528 100644 --- a/source/cloud/azure/azureml.md +++ b/source/cloud/azure/azureml.md @@ -98,7 +98,8 @@ from azure.identity import DefaultAzureCredential # If it isn't found, open a shell and look in the # directory indicated by 'echo ${JUPYTER_SERVER_ROOT}'. ml_client = MLClient.from_config( - credential=DefaultAzureCredential(), path="./config.json" + credential=DefaultAzureCredential(), + path="./config.json", ) ``` @@ -191,6 +192,7 @@ In a notebook cell, copy the example code from this documentation into a new fol ```python from azure.ai.ml import command, Input +# replace this with your own dataset datastore_name = "workspaceartifactstore" dataset = "airline_20000000.parquet" data_uri = f"azureml://subscriptions/{ml_client.subscription_id}/resourcegroups/{ml_client.resource_group_name}/workspaces/{ml_client.workspace_name}/datastores/{datastore_name}/paths/{dataset}"