Forum Discussion

minhnhatdanchoi's avatar
minhnhatdanchoi
Frequent Visitor
9 months ago
Solved

How to run playwright in notebook

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
  • v-sshirivolu's avatar
    v-sshirivolu
    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