Skip to content

Commit ae03ddd

Browse files
committed
More description
1 parent 9359b33 commit ae03ddd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

jupyter_client/kernelapp.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import signal
33
import uuid
44

5-
from jupyter_core.application import JupyterApp
5+
from jupyter_core.application import JupyterApp, base_flags
66
from tornado.ioloop import IOLoop
77
from traitlets import Unicode
88

@@ -11,18 +11,21 @@
1111
from .manager import KernelManager
1212

1313
class KernelApp(JupyterApp):
14+
"""Launch a kernel by name in a local subprocess.
15+
"""
1416
version = __version__
15-
description = "Run a kernel locally"
17+
description = "Run a kernel locally in a subprocess"
1618

1719
classes = [KernelManager, KernelSpecManager]
1820

1921
aliases = {
2022
'kernel': 'KernelApp.kernel_name',
2123
'ip': 'KernelManager.ip',
2224
}
25+
flags = {'debug': base_flags['debug']}
2326

2427
kernel_name = Unicode(NATIVE_KERNEL_NAME,
25-
help = 'The name of a kernel to start'
28+
help = 'The name of a kernel type to start'
2629
).tag(config=True)
2730

2831
def initialize(self, argv=None):
@@ -34,6 +37,7 @@ def initialize(self, argv=None):
3437
self.loop = IOLoop.current()
3538

3639
def setup_signals(self):
40+
"""Shutdown on SIGTERM or SIGINT (Ctrl-C)"""
3741
if os.name == 'nt':
3842
return
3943

0 commit comments

Comments
 (0)