From 5ad3fd19f62b1c5dd5fb60a8ff5e77740356a9ef Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 24 Jun 2015 15:20:16 -0700 Subject: [PATCH] Don't install native kernelspec on startup Part of the fix for jupyter/jupyter_client#35; other part coming up soon --- notebook/notebookapp.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 2d59fab51..ae35039fa 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -974,20 +974,6 @@ class NotebookApp(JupyterApp): """Check the components submodule, and warn if it's unclean""" # TODO: this should still check, but now we use bower, not git submodule pass - - def init_kernel_specs(self): - """Check that the IPython kernel is present, if available""" - try: - self.kernel_spec_manager.get_kernel_spec(NATIVE_KERNEL_NAME) - except NoSuchKernel: - try: - from ipykernel.kernelspec import install - except ImportError: - self.log.warn("IPython kernel not available") - else: - self.log.warn("Installing IPython kernel spec") - install(kernel_spec_manager=self.kernel_spec_manager, user=True) - def init_server_extensions(self): """Load any extensions specified by config. @@ -1016,7 +1002,6 @@ class NotebookApp(JupyterApp): self.init_configurables() self.init_components() self.init_webapp() - self.init_kernel_specs() self.init_terminals() self.init_signal() self.init_server_extensions()