I found the Ctrl-K restart kernel keyboard shortcut, which makes this a 
much smaller issue.

On Tuesday, April 6, 2021 at 11:02:02 a.m. UTC-7 Matt Wilkie wrote:

> Hi,
>
> I'm working with a bunch of scripts from a 3rd party that often include 
> sys.exit() blocks like the below. Is there way to get the kernel to 
> automatically restart so I don't have to do that? Perhaps only after a 
> specific exit code? I'm having to reboot the kernel every minute or so 
> while going through the work and it's very repetitive.
>
> if len(sys.argv) < 4:
>     print(f"Usage: {sys.argv[0]} [in_file] [band#] [out_file] [band #]")
>     sys.exit(1)
>
> [...]
>
> if dataset is None:
>     print("Unable to open", input, "for reading")
>     sys.exit(1)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Pyzo" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/pyzo/4a81995d-c0fc-48a7-bb1f-2c887ac56473n%40googlegroups.com.

Reply via email to