Kernel problem in jupyter notebook (python version 3.12.5)

Hi, I just upgraded python from 3.11.4 to 3.12.5 and run jupyter notebook, but it does not run the code when input from user (kernel busy). I wonder whether there is bug in the new version? there is nothing wrong with the code, good memory on my computer and no overwrite with the program. It works when I restarted the kernel but I found it does not work optimal IF I have to restart again and again in order to run a simple code. Anyone experince the same and has a solution? Thanks in advance.
PS: jupyter notebook version 7.2.2, Kernel version 8.6.2