Skip to content

Commit

Permalink
Default kernel type name pyimport/kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Oct 31, 2018
1 parent 76ab738 commit f1a79bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion notebook/services/kernels/kernelmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class MappingKernelManager(LoggingConfigurable):
def _default_kernel_manager_class(self):
return "jupyter_client.ioloop.IOLoopKernelManager"

default_kernel_name = Unicode('python3', config=True,
default_kernel_name = Unicode('pyimport/kernel', config=True,
help="The name of the default kernel to start"
)

Expand Down
9 changes: 3 additions & 6 deletions notebook/services/kernelspecs/tests/test_kernelspecs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

pjoin = os.path.join

import requests

from jupyter_client.kernelspec import NATIVE_KERNEL_NAME
from notebook.utils import url_path_join, url_escape, quote
from notebook.utils import url_path_join, quote
from notebook.tests.launchnotebook import NotebookTestBase, assert_http_error

# Copied from jupyter_client.tests.test_kernelspec so updating that doesn't
Expand Down Expand Up @@ -85,7 +82,7 @@ def test_list_kernelspecs_bad(self):

model = self.ks_api.list().json()
assert isinstance(model, dict)
self.assertEqual(model['default'], NATIVE_KERNEL_NAME)
self.assertEqual(model['default'], 'pyimport/kernel')
specs = model['kernelspecs']
assert isinstance(specs, dict)
# 2: the sample kernelspec created in setUp, and the native Python kernel
Expand All @@ -96,7 +93,7 @@ def test_list_kernelspecs_bad(self):
def test_list_kernelspecs(self):
model = self.ks_api.list().json()
assert isinstance(model, dict)
self.assertEqual(model['default'], NATIVE_KERNEL_NAME)
self.assertEqual(model['default'], 'pyimport/kernel')
specs = model['kernelspecs']
assert isinstance(specs, dict)

Expand Down

0 comments on commit f1a79bf

Please sign in to comment.