Feature Request: Python notebooks should support custom Environments, similar to PySpark notebooks.
Fabric currently supports custom Environments for PySpark notebooks, but Python notebooks (preview) cannot use them. In Python notebooks, the only available kernels are Python 3.10 and 3.11, and the only way to install packages is via %pip install, which is session‑scoped, not reproducible, and not aligned with Fabric’s managed environment model.
This creates a major gap for teams who want consistent dependency management across both PySpark and Python workflows.
Request
Please add support for:
Custom Python environments (similar to virtual environments)
Attaching those environments to Python notebooks
Managing Python‑only dependencies through the Environment UI
This would bring Python notebooks to parity with PySpark notebooks and enable reliable, repeatable development without %pip workarounds.
Example
In PySpark notebooks with an Environment, this works:
from faker import Fakerfake = Faker()fake.name()
In Python notebooks, it only works after:
%pip install faker
…and must be reinstalled every session.
Enabling custom environments for Python notebooks would solve this cleanly and improve the overall Fabric development experience.
2 Comments
- deborshi_nagSuper UserI agree, Environments in Fabric should work for both PySpark and Python notebooks. The concept is very similar to maintaining a virtual environment for Python project, so doesn't explain why it works for PySpark notebooks and not Python.
- mrbartussAdvocate IIOne follow-up for production use - if this pure Python notebook is scheduled in a Data Factory pipeline, is inline %pip install completely safe? I just want to make sure automated runs won't hit any of the stability issues mentioned here: https://learn.microsoft.com/en-us/fabric/data-engineering/library-management#python-inline-installation warning against inline pip (even though I know those articles mostly focus on Spark)
Recent ideas
Fix Direct Lake semantic model binding in Deployment Pipelines
When deploying Direct Lake semantic models via Deployment Pipelines, the Lakehouse source is incorrectly treated as an external SQL source. This results in broken lineage and prompts for credentials....lk1231 hour agoAdvocate INew1.5KViews27likes2Comments:: operator for typecast in T-SQL
Introduce support for the ::type cast operator in Fabric Data Warehouse as syntactic sugar for the existing CAST(... AS type) expression. The new operator would be functionally equivalent and compile...jovanpop-msft3 hours agoMicrosoft EmployeeNew47Views7likes2CommentsAllow calls of Fabric SQL Database stored procedures from Data Warehouse
It would be great if there were a possibility to call a SQL Database stored procedures directly from a Data Warehouse stored procedures. A use case for this would be e.g. logging activities and even...Vojtech_Dolejsi6 hours agoNew MemberUnder Review2.9KViews13likes2CommentsPower BI - Org apps and cross-report drillthrough
This idea is a request to provide cross-report drill-through capability for org apps. This means being able to navigate between reports hosted in different org apps. The following sections detail why...TomMartens7 hours agoSuper UserNew1.3KViews24likes3Comments