def start_channels(self, shell=True, sub=True, stdin=True, hb=True):
if shell:<EOL><INDENT>self.shell_channel.start()<EOL><DEDENT>if sub:<EOL><INDENT>self.sub_channel.start()<EOL><DEDENT>if stdin:<EOL><INDENT>self.stdin_channel.start()<EOL>self.shell_channel.allow_stdin = True<EOL><DEDENT>else:<EOL><INDENT>self.shell_channel.allow_stdin = False<EOL><DEDENT>if hb:<EOL><INDENT>self.hb_channel.start()<EOL><DEDENT>
Starts the channels for this kernel.

        This will create the channels if they do not exist and then start
        them. If port numbers of 0 are being used (random ports) then you
        must first call :method:`start_kernel`. If the channels have been
        stopped and you call this, :class:`RuntimeError` will be raised.