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!")
Sort class pulls field and direction attrs from request.GET.
dataset/ETHPy150Open ipython/ipython-py3k/IPython/parallel/engine/kernelstarter.py/KernelStarter.interrupt_kernel--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/view/lists/test_sort.py/SortTest.test_attributes