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
Consistent Locale Handling Across Power BI, Fabric, PowerPoint, and Subscriptions
Microsoft Fabric and Power BI should provide consistent locale handling across all user experiences. Today, locales such as German (Switzerland) are correctly respected in Power BI Desktop and the Po...Le_M9 minutes agoRegular VisitorNew1View0likes0CommentsIn Data Pipelines, Schedules should not be part of the definition
The request is to ensure Schedules are not included in the definition of a Data Pipeline for purposes of Deployment Pipelines. Today, when we deploy content across environments, the item frequent...schneiw55 minutes agoAdvocate IVUnder Review812Views25likes3CommentsPipeline activity Refresh SQL Endpoint (preview) does not accept dynamic content
I am testing out the new Pipeline activity for Refresh SQL Endpoint, currently in preview. Sure, I get it that this is in preview, but it should at least have basic minimum functionality. It do...ToddChitt1 hour agoSuper UserNew585Views8likes6CommentsPower BI Admin & Governance Center – Centralized Activity and Usage Analytics
Subject: Feature Proposal: Advanced Power BI Admin & Governance Center – Centralized Activity, Access, Sharing, Licensing and Usage Analytics Dear Microsoft Power BI Team, I would like to propose a...Dr7awb5 hours agoNew MemberNew4Views0likes0CommentsFeature Proposal: Expandable/Collapsible Page Sections for Reports on Same Semantic Model
Subject: Feature Proposal: Expandable/Collapsible Page Sections for Reports Using the Same Semantic Model Dear Microsoft Power BI Team, I would like to propose an enhancement to the Power BI report...Dr7awb5 hours agoNew MemberNew3Views0likes0Comments