Skip to content

Commit

Permalink
Merge pull request #168 from takluyver/no-install-kernelspec
Browse files Browse the repository at this point in the history
Don't install native kernelspec on startup
  • Loading branch information
minrk committed Jul 23, 2015
2 parents 406a57d + 5ad3fd1 commit c03a564
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions notebook/notebookapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -974,20 +974,6 @@ def init_components(self):
"""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.
Expand Down Expand Up @@ -1016,7 +1002,6 @@ def initialize(self, argv=None):
self.init_configurables()
self.init_components()
self.init_webapp()
self.init_kernel_specs()
self.init_terminals()
self.init_signal()
self.init_server_extensions()
Expand Down

0 comments on commit c03a564

Please sign in to comment.