Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
nerminyehia
Frequent Visitor

Fabric Python Notebook Custom Library

Hi,

I’m trying to create a custom library and import it into a Python notebook (not a PySpark notebook), but it seems this isn’t currently supported in the Fabric portal.

  • Is there a workaround to make this work properly with a Python notebook (not PySpark)?
    If not, do you know when this feature is expected to be available?

  • I’ve tried packaging the library as a wheel file, uploading it to the Lakehouse, and installing it manually in the notebook. However, I’d like to improve this process to reduce execution time.

Thanks,
Nermin

1 ACCEPTED SOLUTION
OnurOz
Resolver III
Resolver III

Hi Nermin,

 

You can upload your wheel file (.whl) to the workspace or Lakehouse and install it in your notebook code using %pip install /lakehouse/default/Files/<your_wheel.whl>. This is a quick method, but it means the install runs at the beginning of every session.

 

Currently, Microsoft Fabric Python notebooks (non-PySpark) allow you to use custom libraries by uploading a wheel (.whl) file and installing it manually using pip within the notebook, but there is no official, streamlined way to natively register and reuse custom libraries as you might expect in more traditional environments.

 

Check this video out: https://youtu.be/JPyLTwSbdt8

 

Hope that helps.

Onur


😊 If this post helped you, feel free to give it some Kudos! 👍

And if it answered your question, please mark it as the accepted solution.


View solution in original post

3 REPLIES 3
v-echaithra
Community Support
Community Support

Hi @nerminyehia ,

May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

Thank you.

v-echaithra
Community Support
Community Support

Hi @nerminyehia ,

We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

Best Regards,
Chaithra E.

OnurOz
Resolver III
Resolver III

Hi Nermin,

 

You can upload your wheel file (.whl) to the workspace or Lakehouse and install it in your notebook code using %pip install /lakehouse/default/Files/<your_wheel.whl>. This is a quick method, but it means the install runs at the beginning of every session.

 

Currently, Microsoft Fabric Python notebooks (non-PySpark) allow you to use custom libraries by uploading a wheel (.whl) file and installing it manually using pip within the notebook, but there is no official, streamlined way to natively register and reuse custom libraries as you might expect in more traditional environments.

 

Check this video out: https://youtu.be/JPyLTwSbdt8

 

Hope that helps.

Onur


😊 If this post helped you, feel free to give it some Kudos! 👍

And if it answered your question, please mark it as the accepted solution.


Helpful resources

Announcements
FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Fabric Update Carousel

Fabric Monthly Update - March 2026

Check out the March 2026 Fabric update to learn about new features.

Top Kudoed Authors