def init_kernel(self):
kernel_factory = import_item(str(self.kernel_class))<EOL>self.kernel = kernel_factory(config=self.config, session=self.session,<EOL>shell_socket=self.shell_socket,<EOL>iopub_socket=self.iopub_socket,<EOL>stdin_socket=self.stdin_socket,<EOL>log=self.log<EOL>)<EOL>self.kernel.record_ports(self.ports)<EOL>
Create the Kernel object itself