##// END OF EJS Templates
Make KernelSpecManager configurable...
Bussonnier Matthias -
Show More
@@ -616,11 +616,22 b' class NotebookApp(BaseIPythonApplication):'
616 def _kernel_spec_manager_default(self):
616 def _kernel_spec_manager_default(self):
617 return KernelSpecManager(ipython_dir=self.ipython_dir)
617 return KernelSpecManager(ipython_dir=self.ipython_dir)
618
618
619
620 kernel_spec_manager_class = DottedObjectName('IPython.kernel.kernelspec.KernelSpecManager',
621 config=True,
622 help="""
623 The kernel spec manager class to use. Should be a subclass
624 of `IPython.kernel.kernelspec.KernelSpecManager`.
625
626 The Api of KernelSpecManager is provisional and might change
627 without warning between this version of IPython and the next stable one.
628 """)
629
619 trust_xheaders = Bool(False, config=True,
630 trust_xheaders = Bool(False, config=True,
620 help=("Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-For headers"
631 help=("Whether to trust or not X-Scheme/X-Forwarded-Proto and X-Real-Ip/X-Forwarded-For headers"
621 "sent by the upstream reverse proxy. Necessary if the proxy handles SSL")
632 "sent by the upstream reverse proxy. Necessary if the proxy handles SSL")
622 )
633 )
623
634
624 info_file = Unicode()
635 info_file = Unicode()
625
636
626 def _info_file_default(self):
637 def _info_file_default(self):
@@ -690,6 +701,9 b' class NotebookApp(BaseIPythonApplication):'
690 def init_configurables(self):
701 def init_configurables(self):
691 # force Session default to be secure
702 # force Session default to be secure
692 default_secure(self.config)
703 default_secure(self.config)
704 kls = import_item(self.kernel_spec_manager_class)
705 self.kernel_spec_manager = kls(ipython_dir=self.ipython_dir)
706
693 kls = import_item(self.kernel_manager_class)
707 kls = import_item(self.kernel_manager_class)
694 self.kernel_manager = kls(
708 self.kernel_manager = kls(
695 parent=self, log=self.log, kernel_argv=self.kernel_argv,
709 parent=self, log=self.log, kernel_argv=self.kernel_argv,
General Comments 0
You need to be logged in to leave comments. Login now