scglue.utils.DelayedKeyboardInterrupt

class scglue.utils.DelayedKeyboardInterrupt[source]

Bases: object

Shield a code block from keyboard interruptions, delaying handling till the block is finished (adapted from https://stackoverflow.com/a/21919644).

Methods

Attributes

logger