environment/lib/python2.7/site-packages/IPython/zmq/kernelmanager.py
def is_alive(self):
        """Is the kernel process still running?"""
        if self.has_kernel:
            if self.kernel.poll() is None:
                return True
            else:
                return False
        elif self._hb_channel is not None:
            # We didn't start the kernel with this KernelManager so we
            # use the heartbeat.
            return self._hb_channel.is_beating()
        else:
            # no heartbeat and not local, we can't tell if it's running,
            # so naively return True
            return True
def is_alive(self):
        if self.has_kernel:
            if self.kernel.poll() is None:
                return True
            else:
                return False
        elif self._hb_channel is not None:
            # We didn't start the kernel with this KernelManager so we
            # use the heartbeat.
            return self._hb_channel.is_beating()
        else:
            # no heartbeat and not local, we can't tell if it's running,
            # so naively return True
            return True
def is_alive ( self ) : if self . has_kernel : if self . kernel . poll ( ) is None : return True else : return False elif self . _hb_channel is not None : # We didn't start the kernel with this KernelManager so we # use the heartbeat. return self . _hb_channel . is_beating ( ) else : # no heartbeat and not local, we can't tell if it's running, # so naively return True return True
Is the kernel process still running?
Is the kernel process still running?