| title | How to manage libraries for your Fabric User Data Functions |
|---|---|
| description | Manage adding, deleting, and updating libraries with User data functions in Fabric. |
| ms.reviewer | sumuth |
| ms.topic | how-to |
| ms.custom | freshness-kr |
| ms.date | 01/21/2026 |
| ms.search.form | Fabric User Data Functions |
When developing custom business logic, you can use public libraries from PyPI or incorporate your own private libraries for data processing or transformation.
This article shows you how to add, update, and remove libraries for your user data functions.
User data functions support two types of libraries:
- Public libraries: Any public library available on PyPI.
- Private libraries: Your own custom libraries uploaded as
.whlpackages.
To add a public library from PyPI:
-
Sign in to Microsoft Fabric.
-
Open the user data functions item you want to update.
-
Select Library Management from the toolbar.
:::image type="content" source="..\media\user-data-functions-manage-libraries\select-library-management.png" alt-text="Screenshot showing how to manage libraries." lightbox="..\media\user-data-functions-manage-libraries\select-library-management.png":::
[!NOTE] The
fabric_user_data_functionslibrary is included by default and can't be removed. This is the Fabric user data functions SDK. You can update the version when new releases are available. -
Select Add from PyPI. Enter the library name and select a version. For example, enter
pandasand select version2.3.3.:::image type="content" source="..\media\user-data-functions-manage-libraries\add-pandas-library.png" alt-text="Screenshot showing how to add pandas library." lightbox="..\media\user-data-functions-manage-libraries\add-pandas-library.png":::
-
Repeat the previous step to add more libraries as needed.
-
Select Publish to apply your library changes. The library status changes from Saved to Published after publishing completes.
To update a library version:
- Open your user data functions item and select Library Management.
- Find the library you want to update and select the version dropdown.
- Select a different version.
- Select Publish to apply your changes.
To remove a library:
- Open your user data functions item and select Library Management.
- Hover over the library row and select the trash icon.
- Select Publish to apply your changes.
Private libraries are custom code packages built by you or your organization. You can upload private libraries in .whl (Python wheel) format.
To add a private library:
-
Open your user data functions item and select Library Management.
-
Select Upload.
:::image type="content" source="..\media\user-data-functions-manage-libraries\add-private-library.png" alt-text="Screenshot showing how to add a private library." lightbox="..\media\user-data-functions-manage-libraries\add-private-library.png":::
-
Browse to and select your
.whlfile. -
Select Publish to apply your changes.
- The
.whlfile size must be less than 30 MB. - The
.whlfile must be platform-independent (OS agnostic). Platform-specific wheels likenumpy-2.2.2-cp311-cp311-linux_armv6l.whlaren't supported.