This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
Hi, i'm trying to run some code in a fabric notebook, but i'm getting an error saying that some dependencies are missing.
how can i install these dependencies in a fabric notebook. Thank you
Solved! Go to Solution.
Hi @minhnhatdanchoi ,
As you found, Fabric notebooks cannot run Playwright directly right now. The easiest way is to run your Playwright scripts on your laptop, an Azure VM, or a Databricks notebook where it works fully, and then bring the results into Fabric. If you want to do web scraping or automation inside Fabric, using APIs with Python (requests/httpx) or official SDKs can work without needing a browser. If running Playwright directly in Fabric is very important for you, you may also consider raising a Microsoft support ticket for guidance or to request feature support.
To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Additional information:
I'm trying to run playwright install-deps, and it require password to install
Hi @minhnhatdanchoi ,
I would also take a moment to thank @tayloramy , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions
Hi @minhnhatdanchoi ,
I hope the information provided above assists you in resolving the issue. If you have any additional questions or concerns, please do not hesitate to contact us. We are here to support you and will be happy to help with any further assistance you may need.
Hi @minhnhatdanchoi,
You can either install them in an environment and use that environment in your notebook as described here:
Library Management in Fabric Environments - Microsoft Fabric | Microsoft Learn
Or you can use the %pip install magic command at the top of your notebook. That is outlined here:
Manage Apache Spark libraries - Microsoft Fabric | Microsoft Learn
If you found this helpful, consider giving some Kudos. If I answered your question or solved your problem, mark this post as the solution.
Proud to be a Super User! | |
I can't install because it require sudo command
Hi @minhnhatdanchoi ,
The reason !playwright install isn’t working is that it normally requires elevated permissions to install browser binaries system-wide, which isn’t available in a Fabric notebook. In this environment, the recommended approach is to rely on user-level installation methods or the pre-installed browser dependencies provided by the platform, which allows you to run Playwright code without needing sudo while staying within the platform’s security rules.
How can I use pre-installed browser dependencies with playwright in Fabric notebook. Any document about this ?
Hi @minhnhatdanchoi ,
Fabric notebooks don’t come with Playwright’s browser binaries pre-installed, but the runtime already includes most of the base system libraries you need, and anything else happens in your user space, so no sudo is required. You can install the Python package with %pip install playwright, then use !playwright install chromium (or just let Playwright download it automatically when you first run it). Once that’s done, headless mode usually works without any issues. There isn’t a dedicated Microsoft doc for Playwright on Fabric yet, so the best references are the official Playwright Python docs along with Fabric’s general notebook package guidance.
I tried but it didn't work, thanks for your suggestion. I think fabric notebook just don't support playwright now 😅
Hi @minhnhatdanchoi ,
As you found, Fabric notebooks cannot run Playwright directly right now. The easiest way is to run your Playwright scripts on your laptop, an Azure VM, or a Databricks notebook where it works fully, and then bring the results into Fabric. If you want to do web scraping or automation inside Fabric, using APIs with Python (requests/httpx) or official SDKs can work without needing a browser. If running Playwright directly in Fabric is very important for you, you may also consider raising a Microsoft support ticket for guidance or to request feature support.
To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide:
How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
reply
Check out the June 2026 Fabric update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.