Skip to content

Commit 9812aff

Browse files
authored
Update how-to-access-data-interactive.md
1 parent 9f6fad7 commit 9812aff

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

articles/machine-learning/how-to-access-data-interactive.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,17 +93,19 @@ You can also instantiate an Azure Machine Learning filesystem and do filesystem-
9393
```python
9494
from azureml.fsspec import AzureMachineLearningFileSystem
9595

96-
# instantiate file system using datastore URI
97-
fs = AzureMachineLearningFileSystem('azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>/datastores/<datastore_name>/paths/<folder>')
96+
# instantiate file system using following URI
97+
fs = AzureMachineLearningFileSystem('azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>')
98+
# 'azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>/' is also accepted
9899

99-
# list files in the path
100-
fs.ls()
100+
fs.ls('datastore/datastorename_0)') # list folders/files in datastore datastorename_0
101+
# 'fs.ls('datastore/datastorename_0/)')' is also accepted
101102
# output example:
102-
# /datastore_name/folder/file1.csv
103-
# /datastore_name/folder/file2.csv
103+
# datastore/datastorename_0/folder1
104+
# datastore/datastorename_0/folder2
105+
# datastore/datastorename_0/file1.csv
104106

105107
# use an open context
106-
with fs.open('/datastore_name/folder/file1.csv') as f:
108+
with fs.open('datastore/datastore_name_0/folder/file1.csv') as f:
107109
# do some process
108110
process_file(f)
109111
```

0 commit comments

Comments
 (0)