I am trying to develop a couple of simple workflow automation scripts but have found the development experience somewhat tedious.
Specifically, I am looking to get some halfway decent code completion and debugging. I have managed to run the scripts just fine using the --python-script flag, as well as attach a debugger using the instructions provided here. However, I then noticed that there is no option to run the script directly from the GUI.
Is it possible to improve the code completion and actually debug the script directly? Any pointers would be greatly appreciated. Cheers.
You can get full-decent code completion and debugging in Slicer. The only trick is that you need to attach a debugger, as Slicer does not extend Python (cannot easily do import SlicerLib) but embeds Python. See instructions here.