Error: It looks like you are using Playwright Sync API inside the asyncio loop. Please use the Async API instead. I get this error when running this code: # Create DataFrame df = pd.DataFrame({ "Name": ["Alice", "Bob", "Charlie"], "Age": [24, 30, 28], "Occupation": ["Engineer", "Designer", "Doctor"] }) # Drop index before saving df_styled = df.style.hide(axis="index") # Save as PNG dfi.export(df_styled, "table.png") I searched for ideas on how to solve it, but I cannot seem to be able to solve it through any of them. I cannot uninstall Playwright and have kaliedo instead, because I get npx playwright uninstall --with-deps ^ SyntaxError: invalid syntax. DO you have any idea? I am stuck on this for a week now... Continue reading...