def stop_channels(self):
if self.shell_channel.is_alive():<EOL><INDENT>self.shell_channel.stop()<EOL><DEDENT>if self.sub_channel.is_alive():<EOL><INDENT>self.sub_channel.stop()<EOL><DEDENT>if self.stdin_channel.is_alive():<EOL><INDENT>self.stdin_channel.stop()<EOL><DEDENT>if self.hb_channel.is_alive():<EOL><INDENT>self.hb_channel.stop()<EOL><DEDENT>
Stops all the running channels for this kernel.