Skip to content

Commit

Permalink
Merge pull request #7330 from minrk/display-name
Browse files Browse the repository at this point in the history
use 'Python X' for IPython kernel display name
  • Loading branch information
Carreau committed Jan 1, 2015
2 parents 1ab864b + 353f680 commit 6a33e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def is_sample_kernelspec(s):
return s['name'] == 'sample' and s['spec']['display_name'] == 'Test kernel'

def is_default_kernelspec(s):
return s['name'] == NATIVE_KERNEL_NAME and s['spec']['display_name'].startswith("IPython")
return s['name'] == NATIVE_KERNEL_NAME and s['spec']['display_name'].startswith("Python")

assert any(is_sample_kernelspec(s) for s in specs.values()), specs
assert any(is_default_kernelspec(s) for s in specs.values()), specs
Expand Down
4 changes: 2 additions & 2 deletions IPython/kernel/kernelspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def _native_kernel_dict(self):
"""Makes a kernel directory for the native kernel.
The native kernel is the kernel using the same Python runtime as this
process. This will put its informatino in the user kernels directory.
process. This will put its information in the user kernels directory.
"""
return {'argv': make_ipkernel_cmd(),
'display_name': 'IPython (Python %d)' % (3 if PY3 else 2),
'display_name': 'Python %i' % (3 if PY3 else 2),
}

@property
Expand Down

0 comments on commit 6a33e98

Please sign in to comment.