Semantic Link Labs

0.14.2 · active · verified Sat Apr 11

Semantic Link Labs is a Python library designed for use in Microsoft Fabric notebooks. It extends the capabilities of Semantic Link, offering additional functionalities to seamlessly integrate and work with semantic models, workspaces, lakehouses, reports, and capacities within Microsoft Fabric. The library is currently at version 0.14.2 and is actively developed.

Warnings

Install

Imports

Quickstart

The quickstart demonstrates importing the library and provides a placeholder for a common administrative task within Microsoft Fabric, such as listing workspaces. Running this code successfully typically requires execution within a Microsoft Fabric notebook with the necessary permissions and environment setup. The library handles authentication implicitly within the Fabric environment.

import sempy_labs as labs

# Example: List available workspaces (requires appropriate permissions in Fabric)
# This is a placeholder; actual function calls require a Fabric context.
# For a real scenario, you would typically be running this inside a Fabric notebook.
# Example: List workspaces (assuming you have a Fabric connection/context)
# workspaces = labs.admin.list_workspaces()
# print(workspaces.head())

# A more generic example demonstrating an import and a hypothetical utility call
print("Semantic Link Labs imported successfully. Ready to use 'labs' functions.")
# Placeholder for an actual function call from the library that doesn't require specific Fabric resources to run without error
# As a generic example, we'll assume a 'hello' function exists for demonstration
# In reality, you'd call a function related to Fabric resources, e.g., labs.admin.list_workspaces()

view raw JSON →