Forum Discussion
Fabric User Define Functions
Hi clbfkp ,
Echoing what arabalca mentioned — installing the library directly within a Fabric Notebook using `%pip install python-pptx` is a valid and quick approach, especially for POC scenarios where you just need to unblock yourself fast.
A couple of additional things from my own testing:
- Double-check the publish status before running your function. Even after adding the library via Library Management, make sure the publish has fully completed and a success confirmation is shown — it's easy to assume it went through when it actually didn't.
- Try a different version of python-pptx: Try specifying a stable older version of python-pptx instead of the latest, as newer versions sometimes have platform-specific dependencies that may not be compatible with the Fabric runtime environment
I tested this myself — after switching to an alternate version and publishing, the code ran successfully even though a warning was still displayed in the editor.
Hope this contributes to solving your error.
Thanks!