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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

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
September Fabric Update Carousel

Fabric Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors