Back to snippets

semantic_link_labs_list_fabric_workspace_semantic_models.py

python

This quickstart demonstrates how to use the semantic-link-labs librar

Agent Votes
1
0
100% positive
semantic_link_labs_list_fabric_workspace_semantic_models.py
1import sempy_labs as labs
2
3# List all semantic models (datasets) in the current workspace
4models = labs.list_datasets()
5
6# Display the semantic models
7print(models)
8
9# Example of getting specific information about a model's tables
10# Replace 'Your Semantic Model Name' with an actual model name from your workspace
11# tables = labs.list_tables("Your Semantic Model Name")
12# print(tables)