Registry / azure / fabric-analytics-notebook-plugin

fabric-analytics-notebook-plugin

JSON →
library0.0.3.post4pypypiunverified

This package is identified as a plugin for the FABRIC SDK, specifically designed for use within Microsoft Fabric's online Spark/Python Notebook environments and Spark Job Definitions (SJDs). It appears to be an internal component that enables or integrates analytics capabilities within the broader Fabric platform, rather than a library intended for direct user-level imports and interactions. Microsoft Fabric is an end-to-end data analytics platform offering data engineering, data science, data warehousing, and real-time analytics. The current version is 0.0.3.post4.

pip install fabric-analytics-notebook-plugin
INSTALL
IMPORT
SIG · FABRIC-ANALYTICS-N
F
fabric-analytics-notebook-plugin
azurepythonv0.0.3.post4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

This quickstart demonstrates common patterns for interacting with data and built-in utilities within a Microsoft Fabric Python Notebook environment, as the `fabric-analytics-notebook-plugin` itself is not designed for direct user-level imports. It shows how to read data using PySpark and how to use the `notebookutils` (formerly `mssparkutils`) package to interact with the file system, which are core operations in Fabric analytics workflows.

import pyspark.sql.functions as F # This package is an internal plugin for the Fabric Notebook environment. # Direct import of 'fabric_analytics_notebook_plugin' is not typically done by users. # Instead, users interact with the Fabric environment and built-in utilities like notebookutils. # Example of typical analytics operation in a Fabric Python Notebook # Read data from a Lakehouse table (replace 'YourLakehouse' and 'YourTable' with actual names) # Assume 'spark' object is pre-initialized in Fabric notebooks # You might need to attach a Lakehouse to your notebook first. # Example: Reading a Delta table from the default Lakehouse try: df = spark.read.format("delta").load("Files/YourTable") print(f"DataFrame schema: {df.schema.simpleString()}") df.show(5) # Example using built-in Fabric notebook utilities (formerly mssparkutils) # from notebookutils import mssparkutils # Older syntax, still compatible for now from notebookutils import notebook, fs # List files in the default Lakehouse's 'Files' section print("\nListing files in 'Files/' directory:") files = fs.ls("Files/") for file_info in files: print(f" - {file_info.name} (size: {file_info.size} bytes)") except Exception as e: print(f"Error during quickstart execution: {e}") print("Please ensure you are running this in a Microsoft Fabric Notebook") print("and have a Lakehouse attached with a 'YourTable' Delta table and some files.")
Debug
Known issues
gotchaThe `fabric-analytics-notebook-plugin` package appears to be an internal Microsoft Fabric component. Direct user-level imports or explicit quickstart guides for this specific package are not available in public documentation. Its role is likely to provide underlying functionality for analytics within the Fabric notebook environment.
fix
Users should focus on using the standard Fabric notebook capabilities, including PySpark, Python libraries, and the built-in `notebookutils` package, rather than attempting to directly import this plugin.
affects: All versions
breakingThe `mssparkutils` package, a common utility in Fabric and Synapse notebooks, has been officially renamed to `notebookutils`. While existing `mssparkutils` code remains backward compatible, the `mssparkutils` namespace will be retired in the future. All new features are exclusively supported under `notebookutils`.
fix
Update imports from `from mssparkutils import ...` to `from notebookutils import ...` and adopt `notebookutils` for all new development to ensure future compatibility and access to new features.
affects: All versions, with future breaking change expected for `mssparkutils` usage.
gotchaMicrosoft Fabric notebook sessions can time out due to inactivity or capacity limits, leading to lost work if not saved or if long-running operations are interrupted.
fix
Regularly save your notebooks. Configure session timeout durations in Workspace settings under 'Data Engineering/Science Spark settings' if you have the necessary permissions. Be aware of capacity limits that might pause your workspace.
affects: All versions of Fabric notebooks
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'fsspec_wrapper.trident.core'
This error often occurs in Microsoft Fabric notebooks when a Python package, especially one with complex or internal dependencies (like `pandas` indirectly depending on `fsspec_wrapper.trident.core`), is imported from a custom environment that is missing required internal Fabric components or has version mismatches.
fix
Ensure that all necessary dependencies are explicitly added to your custom Fabric environment, or switch to the 'Workspace Default' environment which typically includes all core Fabric-specific components. If using a custom environment, verify that its `fsspec` version is compatible with the Fabric runtime and other installed libraries.
%pip magic command is disabled.
Microsoft Fabric disables the `%pip install` magic command by default when a notebook is executed as part of a Data Factory pipeline for security, stability, and reproducibility reasons. It is allowed in interactive sessions but not in orchestrated runs.
fix
Instead of using `%pip install` within the notebook, manage your Python libraries by creating a 'Managed Fabric Environment' and attaching it to your notebook or pipeline activity. This pre-installs dependencies before execution, ensuring a stable and reproducible environment.
AnalysisException: [REQUIRES_SINGLE_PART_NAMESPACE] spark_catalog requires a single-part namespace, but got LabsLake.temperature_schema.
This Spark SQL error indicates that the `spark_catalog` in Microsoft Fabric expects a single-part namespace (e.g., `schema_name` or `table_name`) for certain operations, but the provided command used a multi-part namespace (e.g., `lakehouse_name.schema_name`). This often happens when creating schemas or tables directly.
fix
Adjust your Spark SQL queries to use single-part namespaces where required by the `spark_catalog`. For instance, when creating a schema, use `CREATE SCHEMA IF NOT EXISTS schema_name` instead of `CREATE SCHEMA IF NOT EXISTS lakehouse_name.schema_name` if the context is already within the lakehouse.
Missing string resource 'OpenInVsCodeDesktop' from ResourceManager
This error occurs when attempting to open a Microsoft Fabric notebook in VS Code, often due to language or regional settings in the browser or an issue with the VS Code Fabric extension's ability to locate localized resources.
fix
A common workaround is to change your web browser's language setting to English and then try opening the notebook in VS Code again. Ensure your VS Code extensions, particularly the Fabric/Synapse extension, are updated to the latest version.
Upgrade
Version history
0.0.3.post4latest on PyPI · released Mar 31, 2026
Audit
Dependencies
pythonrequiredRuntime dependency as specified on PyPI.
Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
1
Resources
fabric-analytics-notebook-plugin — pip install fabric-analytics-notebook-plugin · libregistry