Show More
@@ -1,11 +1,7 b'' | |||||
1 | """Abstract base class for kernel managers.""" |
|
1 | """Abstract base class for kernel managers.""" | |
2 |
|
2 | |||
3 | #----------------------------------------------------------------------------- |
|
3 | # Copyright (c) IPython Development Team. | |
4 | # Copyright (C) 2013 The IPython Development Team |
|
4 | # Distributed under the terms of the Modified BSD License. | |
5 | # |
|
|||
6 | # Distributed under the terms of the BSD License. The full license is in |
|
|||
7 | # the file COPYING, distributed as part of this software. |
|
|||
8 | #----------------------------------------------------------------------------- |
|
|||
9 |
|
5 | |||
10 | import abc |
|
6 | import abc | |
11 |
|
7 | |||
@@ -24,54 +20,6 b' class KernelManagerABC(with_metaclass(abc.ABCMeta, object)):' | |||||
24 | def kernel(self): |
|
20 | def kernel(self): | |
25 | pass |
|
21 | pass | |
26 |
|
22 | |||
27 | @abc.abstractproperty |
|
|||
28 | def shell_channel_class(self): |
|
|||
29 | pass |
|
|||
30 |
|
||||
31 | @abc.abstractproperty |
|
|||
32 | def iopub_channel_class(self): |
|
|||
33 | pass |
|
|||
34 |
|
||||
35 | @abc.abstractproperty |
|
|||
36 | def hb_channel_class(self): |
|
|||
37 | pass |
|
|||
38 |
|
||||
39 | @abc.abstractproperty |
|
|||
40 | def stdin_channel_class(self): |
|
|||
41 | pass |
|
|||
42 |
|
||||
43 | #-------------------------------------------------------------------------- |
|
|||
44 | # Channel management methods |
|
|||
45 | #-------------------------------------------------------------------------- |
|
|||
46 |
|
||||
47 | @abc.abstractmethod |
|
|||
48 | def start_channels(self, shell=True, iopub=True, stdin=True, hb=True): |
|
|||
49 | pass |
|
|||
50 |
|
||||
51 | @abc.abstractmethod |
|
|||
52 | def stop_channels(self): |
|
|||
53 | pass |
|
|||
54 |
|
||||
55 | @abc.abstractproperty |
|
|||
56 | def channels_running(self): |
|
|||
57 | pass |
|
|||
58 |
|
||||
59 | @abc.abstractproperty |
|
|||
60 | def shell_channel(self): |
|
|||
61 | pass |
|
|||
62 |
|
||||
63 | @abc.abstractproperty |
|
|||
64 | def iopub_channel(self): |
|
|||
65 | pass |
|
|||
66 |
|
||||
67 | @abc.abstractproperty |
|
|||
68 | def stdin_channel(self): |
|
|||
69 | pass |
|
|||
70 |
|
||||
71 | @abc.abstractproperty |
|
|||
72 | def hb_channel(self): |
|
|||
73 | pass |
|
|||
74 |
|
||||
75 | #-------------------------------------------------------------------------- |
|
23 | #-------------------------------------------------------------------------- | |
76 | # Kernel management |
|
24 | # Kernel management | |
77 | #-------------------------------------------------------------------------- |
|
25 | #-------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now