https://github.com/microsoft/playwright-python/issues/178#issuecomment-1302869947
That link provided some insight into the issue. Personally I run my code in a venv so I had to locate the kernel.py for my venv