'Jupyter reverts signal handler to default when running next cell

My custom defined signal handler gets reverted in jupyter when I run the very next cell. This doesn't appear to be the case when running python and ipython.

Jupyter reverts sigint



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source