Timeout waiting for kernel_info_reply

In the last two weeks i cannot use jupyter lab with startyp scripts.

If a startup script is using env related code, it will lead to Timeout waiting for kernel_info_reply.
Then the kernel never really boot and lab does not work.

If i run ipython it will work correctly with the scripts loaded.

all of my scripts were working up untill 2 weeks ago and have not changed.

I have tried to upgrade jupyterlab from 3.2.6 to 3.4+ to no avail.

This is still working in the jupyterlab docker image though, just not locally.

I am using Windows 11 with python 3.9.9/3.9.13 and a local venv.