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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
cw88
Helper IV
Helper IV

Python notebook: Use public libraries

I am testing the Python Notebook (preview) Announcing Python Notebook in Preview | Microsoft Fabric Blog | Microsoft Fabric 

and want to use the public library snowflake-connector-python . 

The only way i have found to use the library is "%pip install snowflake-connector-python", but it installs the library on every execution. Is there a better way without instaling on every execution?
Thanks!
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @cw88 

 

This might be a current limitation on python notebook by public preview. When switching the notebook to Python notebook, it doesn't provide an option for choosing a custom environment which allows installing additional libraries in advance. So you can only use %pip and %conda commands for inline installations as of now. 

vjingzhanmsft_0-1733281283540.png

vjingzhanmsft_1-1733282061857.png

Use Python experience on Notebook - Microsoft Fabric | Microsoft Learn

 

As this is just in preview stage, it is likely to be improved in the future. Please provide your valuable feedback and suggestions at https://ideas.fabric.microsoft.com/ to let the product team hear it. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @cw88 

 

This might be a current limitation on python notebook by public preview. When switching the notebook to Python notebook, it doesn't provide an option for choosing a custom environment which allows installing additional libraries in advance. So you can only use %pip and %conda commands for inline installations as of now. 

vjingzhanmsft_0-1733281283540.png

vjingzhanmsft_1-1733282061857.png

Use Python experience on Notebook - Microsoft Fabric | Microsoft Learn

 

As this is just in preview stage, it is likely to be improved in the future. Please provide your valuable feedback and suggestions at https://ideas.fabric.microsoft.com/ to let the product team hear it. 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

YesidMenesesJar
Regular Visitor

Yes, we could try doing it this way instead...  you can create a new environment.
To do this, go to your workspace and, in the "Create" section, look for the option to create a new environment.
There, you can install public libraries, along with many other configurations, so you don’t have to work with your default setup.

YesidMenesesJar_1-1733267645718.png

 


Later, when you are in your notebook, that environment will appear as an option for you to select and execute within, instead of using the default one.

YesidMenesesJar_0-1733267620951.png

 

You can find more information here:
Create and Use an Environment

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.