Skip to content

Commit

Permalink
formatting, more re-use
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Dec 10, 2024
1 parent b453809 commit d904a10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/cloud/azure/azureml.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
)
```

Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit d904a10

Please sign in to comment.