- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Python libraries available in Notebook
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Restrict access at the Capacity level by controlling who can use Fabric Notebooks via role-based access control (RBAC).
- Monitor and manage workspace creation to ensure compliance.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Restrict access at the Capacity level by controlling who can use Fabric Notebooks via role-based access control (RBAC).
- Monitor and manage workspace creation to ensure compliance.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-22-2023 01:16 AM | |||
12-25-2024 08:57 AM | |||
08-12-2024 10:56 AM | |||
03-17-2025 08:16 AM | |||
06-06-2024 11:24 PM |
User | Count |
---|---|
24 | |
18 | |
11 | |
9 | |
2 |
User | Count |
---|---|
31 | |
24 | |
22 | |
17 | |
12 |