environment/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py
def interrupt_kernel(self):
        """ Interrupts the kernel. Unlike ``signal_kernel``, this operation is
        well supported on all platforms.
        """
        if self.has_kernel:
            if sys.platform == 'win32':
                from parentpoller import ParentPollerWindows as Poller
                Poller.send_interrupt(self.kernel.win32_interrupt_event)
            else:
                self.kernel.send_signal(signal.SIGINT)
        else:
            raise RuntimeError("Cannot interrupt kernel. No kernel is running!")
def interrupt_kernel(self):
        if self.has_kernel:
            if sys.platform == 'win32':
                from parentpoller import ParentPollerWindows as Poller
                Poller.send_interrupt(self.kernel.win32_interrupt_event)
            else:
                self.kernel.send_signal(signal.SIGINT)
        else:
            raise RuntimeError("Cannot interrupt kernel. No kernel is running!")
def interrupt_kernel ( self ) : if self . has_kernel : if sys . platform == 'win32' : from parentpoller import ParentPollerWindows as Poller Poller . send_interrupt ( self . kernel . win32_interrupt_event ) else : self . kernel . send_signal ( signal . SIGINT ) else : raise RuntimeError ( "Cannot interrupt kernel. No kernel is running!" )
Interrupts the kernel. Unlike ``signal_kernel``, this operation is
        well supported on all platforms.
Interrupts the kernel . Unlike signal_kernel this operation is well supported on all platforms .