code: def create_kernel_spec(self, is_cython=False,
                             is_pylab=False, is_sympy=False):
          
          # Before creating our kernel spec, we always need to
          # set this value in spyder.ini
          CONF.set('main', 'spyder_pythonpath',
                   self.main.get_spyder_pythonpath())
          return SpyderKernelSpec(is_cython=is_cython,
                                  is_pylab=is_pylab,
                                  is_sympy=is_sympy)
docs: Create a kernel spec for our own kernels