Forum Discussion
How to run playwright in notebook
- 8 months ago
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
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.
- minhnhatdanchoi8 months agoFrequent Visitor
I tried but it didn't work, thanks for your suggestion. I think fabric notebook just don't support playwright now 😅
- v-sshirivolu8 months agoCommunity Support
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