From 33b458d9609b308eed4800937bb83cb37aefc086 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 29 May 2015 12:29:28 -0700 Subject: [PATCH] install IPython kernel with proper API not deprecated API --- notebook/notebookapp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index c07bedb3c..0dfbd25a5 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -978,12 +978,12 @@ class NotebookApp(JupyterApp): self.kernel_spec_manager.get_kernel_spec(NATIVE_KERNEL_NAME) except NoSuchKernel: try: - import ipykernel + from ipykernel.kernelspec import install except ImportError: self.log.warn("IPython kernel not available") else: self.log.warn("Installing IPython kernel spec") - self.kernel_spec_manager.install_native_kernel_spec(user=True) + install(kernel_spec_manager=self.kernel_spec_manager, user=True) def init_server_extensions(self):