Select to view content in your preferred language

Arc10 Python window keyboard interrupt?

2092
8
11-01-2010 02:05 PM
MattRosales
Deactivated User
Has anyone figured out what the key-command is for the Python window's keyboard interrupt? The standard ctrl+c, which works as a keyboard interrupt in the real python console, does not function here, and I haven't been able to find it in the online documentation. Does anyone know how to trigger a keyboard interrupt / kill a script-in-process? Thanks,
0 Kudos
8 Replies
ChrisSnyder
Honored Contributor
Haven't tried it, but maybe 'Esc'?

Seems like this would be a pretty critical item to include...
0 Kudos
MattRosales
Deactivated User
nope, 'Esc' doesn't seem to have any effect... Any other ideas?
0 Kudos
LoganPugh
Frequent Contributor
See here, looks like the same problem I have in 9.3.1 is still around in 10: http://forums.arcgis.com/threads/13674-KeyboardInterrupt-doesn-t-work-when-arcgisscripting-module-is...
0 Kudos
LoganPugh
Frequent Contributor
I may have misunderstood, if you mean the Python window built into ArcMap, then like any other IDE it won't respond to keyboard input. PythonWin has a "Break into running code" function when you right click its tray icon, but that just raises a KeyboardInterrupt. It would be up to ESRI to implement something similar.
0 Kudos
HugoAhlenius
Deactivated User
But isn't it that the GP tools are suppose to run in the background, and that you can interact with them through the user interface? The tools that don't run in the background (spatial analyst raster processing, for instance) seems to lock up the machine more or less though.

Next time I am running some heavier processing, I'll try doing that through iPython instead...
0 Kudos
MattRosales
Deactivated User
yes, I am referring to the python window built into Arc. These scripts run fine outside of Arc, and even though you can call the same tools through the standard python window, I prefer to use Arc's "results window" to track the progress of the script and the various tools it is calling. Maybe this should be listed in the "ideas" section?

http://ideas.arcgis.com/ideaView?id=087300000008H7jAAE
0 Kudos
LoganPugh
Frequent Contributor
yes, I am referring to the python window built into Arc. These scripts run fine outside of Arc, and even though you can call the same tools through the standard python window, I prefer to use Arc's "results window" to track the progress of the script and the various tools it is calling. Maybe this should be listed in the "ideas" section?

https://c.na1.visual.force.com/apex/ideaView?id=087300000008H7j&returnUrl=%2Fapex%2FideaList%3Fc%3D0...


Probably. FYI that link doesn't work, try logging out and then linking to it.
0 Kudos
MattRosales
Deactivated User
Thanks for the heads up, I changed the link.
0 Kudos