Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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
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 .
Solved! Go to Solution.
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.
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!
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.
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!
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.
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.
You can find more information here:
Create and Use an Environment
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Fabric update to learn about new features.
User | Count |
---|---|
6 | |
4 | |
4 | |
4 | |
3 |