I've tried everything I can think of to kill a running notebook that is stuck in a loop and nothing works. The Interrupt Kernel button is always grayed out, tried restarting the kernel through the command prompt (P Key) but this doesnt seem to do anything either. The only way I've figured out how to stop the process is to kill the entire application in task manager.
In the notebook tab in the top banner you can click "interrupt kernel". I've done this a few times with success, unless ArcPro isn't responding at all, then I find this button can be greyed out.
You could run a command in CMD:
Taskkill /IM ArcGISPro.exe /F
It will instantly close ArcGIS PRO, with running Python too. You could save Notebook and Project when script is running, and then run the command.
I am still experiencing this instability. Can we expect Esri to introduce reliable interrupt kernel functionality soon?
Me too. I run a notebook and it freezes and there is no way to unfreeze. Open and closing an application is not a legitimate solution to this problem.
Interrupt kernel button is greyed out. Ending task does not work.
OK, I made a little headway troubleshooting. For me, I was copy/pasting paths from the catalog tab over to the python window. I noticed if I did the path copy/paste from a text file that I create before running the script and NOT the catalog window (while the script was running) I was able to maintain the Kernel interruption option. I'm sure this has something to do with lock file management but maybe it will help others.
2025, and I am running into this issue as well. I am trying to write a notebook script that iterates through around 500 features with a searchcursor, and had to use task manager to end an accidental infinite loop.
The Interrupt Kernel button is greyed out for the whole time and the shortcut command doesn't do anything.
I am working in ArcGIS Pro 3.3, it would be great to know if this is an active bug, has been fixed in a later release, or is something Esri is looking into.