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
Enable mermaid diagrams rendering in Notebooks
Diagrams can be a great explainer of a (Data engineering) process, code or ML process. Notebooks already support including Markdown for adding description. And Mermaid is a well-know way to in...cmaneu36 minutes agoMicrosoft EmployeeNeeds Votes3.4KViews52likes5CommentsPower BI Subscriptions enhancements sorely needed
I believe there are several updates needed to Power BI subscriptions: Gate subscription ability. Right now, this is all-on/all-off feature. I would like this feature to be gated for users/securit...OldDogNewTricks8 hours agoKudo CollectorNew688Views26likes3CommentsSearch for models that failed or are in progress
We'd like to be able to search a workspace for models that are currently refreshing or models that have failed to refresh. We have a workspace with a lot of models; and its difficult to identify the...wrjohnston912388 hours agoRegular VisitorNew8Views0likes0CommentsOption to disable or bulk-clear Multitasking session tabs in the Left Navigation Pane
Currently, when working in the Fabric/Power BI Service, opening reports, dataflows, lakehouses, or semantic models automatically stacks them as active session tabs directly under the active workspace...DirkSw10 hours agoNew MemberNew7Views0likes0Comments