Error : The kernel failed to start as 'KeyPressEvent' could not be imported from 'c:\Users\userAppData\Local\Programs\Python\Python310\lib\site-packages\prompt_toolkit\key_binding\_init_.py'. View Jupyter log for further details.
don't uninstall your python app/ current version and find check you are using which version and find that on website https://www.python.org/downloads/release/ and downlaod that version and don't install because you have to do modify only after that again run your app
thanks