Python wont work in notebooks

I have used python for a while now, no changes, version 3.12.7. It works perfectly fine in VScode in a python file, but for some reason i just when i try in notebooks and select a kernel, my only option is to install it again, and i have no clue why.