Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Are all Python libraries available to import in Fabric Notebooks or is there a restriction list from Microsoft? Are there any security documents around this or using Python within Fabric Notebooks?
How do others administer this if they don't want users using Python within Fabric?
Solved! Go to Solution.
Hi @scotttom1
In addition to @suparnababu8 for your clarification please do check the below points that might resolve your issue.
Microsoft won't block public Python libraries, users can install packages from PyPI and conda within their notebooks.However, certain lbraries may be restricted for secrity or compatibility reasons. Individual organizations are responsible for assessing the security of third-party libraries.
If security is a concern, you may want to restrict which libraries can be installed by controlling internet access or enforcing a private package repository.
If your organization manages the Fabric Capacity but not workspaces, you can:
If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.
Hi @scotttom1
In addition to @suparnababu8 for your clarification please do check the below points that might resolve your issue.
Microsoft won't block public Python libraries, users can install packages from PyPI and conda within their notebooks.However, certain lbraries may be restricted for secrity or compatibility reasons. Individual organizations are responsible for assessing the security of third-party libraries.
If security is a concern, you may want to restrict which libraries can be installed by controlling internet access or enforcing a private package repository.
If your organization manages the Fabric Capacity but not workspaces, you can:
If the above information is helpful, please give us Kudos and mark the response as Accepted as solution.
Best Regards,
Community Support Team _ C Srikanth.
Hi @scotttom1
Microsoft Fabric environments provide flexible configurations for running your Spark jobs. Libraries provide reusable code that developers want to include in their work. Except for the built-in libraries that come with each Spark runtime, you can install public and custom libraries in your Fabric environments.
Notebooks work with many Python libraries, including popular ones like DuckDB, Polars, and Scikit-learn. You can add more libraries from PyPI or conda, either for the entire workspace or just for the current session. However, during the preview stage, there are some limitations, such as not being able to pre-install libraries in custom environments.
About security, If you want to limit Python usage in Fabric Notebooks, you can set permissions and manage access at the workspace level. Admins can decide which libraries can be installed and restrict the use of Python notebooks by adjusting permissions.
Please visit below URLs. It might helps you
Library management in Fabric environments - Microsoft Fabric | Microsoft Learn
How to use notebooks - Microsoft Fabric | Microsoft Learn
Installing and Managing Python Packages in Microsoft Fabric
Use Python experience on Notebook - Microsoft Fabric | Microsoft Learn
Thank you!
Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
Hi suparnababu8,
Thanks for your response.
In our set up we administer the capacity but not the workspaces. It would be a large overhead for us to adminster each workspace to restrict libraries.
Am I correct in thinking that within a Fabric Notebook any Python libraries can be installed? Or do Microsoft block certain installs? Are these libraries checked by Microsoft at all?
Our Cyber team are looking for more answers around Python in Fabric before we offer its features to users. Apart from using Environments is there no other way to restrict the use of Python? I have looked through the supplied links and can't find the option to restrict the use of Python Notebooks?
Thanks again
Tom
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Fabric update to learn about new features.