def get_kernel_spec(self, kernel_name):
try:<EOL><INDENT>return super(EnvironmentKernelSpecManager,<EOL>self).get_kernel_spec(kernel_name)<EOL><DEDENT>except (NoSuchKernel, FileNotFoundError):<EOL><INDENT>venv_kernel_name = kernel_name.lower()<EOL>specs = self.get_all_kernel_specs_for_envs()<EOL>if venv_kernel_name in specs:<EOL><INDENT>return specs[venv_kernel_name]<EOL><DEDENT>else:<EOL><INDENT>raise NoSuchKernel(kernel_name)<EOL><DEDENT><DEDENT>
Returns a :class:`KernelSpec` instance for the given kernel_name.

        Raises :exc:`NoSuchKernel` if the given kernel name is not found.