environment/lib/python2.7/site-packages/IPython/frontend/html/notebook/kernelmanager.py
def start_kernel(self, **kwargs):
        """Start a new kernel."""
        kernel_id = unicode(uuid.uuid4())
        # use base KernelManager for each Kernel
        km = self.kernel_manager_factory(connection_file=os.path.join(
                    self.connection_dir, "kernel-%s.json" % kernel_id),
                    config=self.config,
        )
        km.start_kernel(**kwargs)
        # start just the shell channel, needed for graceful restart
        km.start_channels(shell=True, sub=False, stdin=False, hb=False)
        self._kernels[kernel_id] = km
        return kernel_id
def start_kernel(self, **kwargs):
        kernel_id = unicode(uuid.uuid4())
        # use base KernelManager for each Kernel
        km = self.kernel_manager_factory(connection_file=os.path.join(
                    self.connection_dir, "kernel-%s.json" % kernel_id),
                    config=self.config,
        )
        km.start_kernel(**kwargs)
        # start just the shell channel, needed for graceful restart
        km.start_channels(shell=True, sub=False, stdin=False, hb=False)
        self._kernels[kernel_id] = km
        return kernel_id
def start_kernel ( self , * * kwargs ) : kernel_id = unicode ( uuid . uuid4 ( ) ) # use base KernelManager for each Kernel km = self . kernel_manager_factory ( connection_file = os . path . join ( self . connection_dir , "kernel-%s.json" % kernel_id ) , config = self . config , ) km . start_kernel ( * * kwargs ) # start just the shell channel, needed for graceful restart km . start_channels ( shell = True , sub = False , stdin = False , hb = False ) self . _kernels [ kernel_id ] = km return kernel_id
Start a new kernel.
Start a new kernel .