Show More
@@ -34,8 +34,8 b' import uuid' | |||
|
34 | 34 | from IPython.config.application import boolean_flag |
|
35 | 35 | from IPython.config.configurable import Configurable |
|
36 | 36 | from IPython.core.profiledir import ProfileDir |
|
37 |
from IPython.kernel.blocking |
|
|
38 |
from IPython.kernel |
|
|
37 | from IPython.kernel.blocking import BlockingKernelManager | |
|
38 | from IPython.kernel import KernelManager | |
|
39 | 39 | from IPython.kernel import tunnel_to_kernel, find_connection_file, swallow_argv |
|
40 | 40 | from IPython.utils.path import filefind |
|
41 | 41 | from IPython.utils.py3compat import str_to_bytes |
@@ -5,6 +5,6 b' from . import zmq' | |||
|
5 | 5 | |
|
6 | 6 | from .connect import * |
|
7 | 7 | from .launcher import * |
|
8 |
from . |
|
|
9 |
from .blocking |
|
|
8 | from .manager import KernelManager | |
|
9 | from .blocking import BlockingKernelManager | |
|
10 | 10 | from .multikernelmanager import MultiKernelManager |
@@ -0,0 +1,1 b'' | |||
|
1 | from .manager import BlockingKernelManager No newline at end of file |
@@ -16,7 +16,7 b' Useful for test suites and blocking terminal interfaces.' | |||
|
16 | 16 | import Queue |
|
17 | 17 | |
|
18 | 18 | from IPython.utils.traitlets import Type |
|
19 | from .kernelmanager import KernelManager, IOPubChannel, HBChannel, \ | |
|
19 | from IPython.kernel.manager import KernelManager, IOPubChannel, HBChannel, \ | |
|
20 | 20 | ShellChannel, StdInChannel |
|
21 | 21 | |
|
22 | 22 | #----------------------------------------------------------------------------- |
@@ -0,0 +1,2 b'' | |||
|
1 | from .manager import IOLoopKernelManager | |
|
2 | from .restarter import IOLoopKernelRestarter |
@@ -20,8 +20,8 b' from IPython.utils.traitlets import (' | |||
|
20 | 20 | Instance |
|
21 | 21 | ) |
|
22 | 22 | |
|
23 |
from .blocking |
|
|
24 |
from . |
|
|
23 | from IPython.kernel.blocking.manager import BlockingKernelManager | |
|
24 | from .restarter import IOLoopKernelRestarter | |
|
25 | 25 | |
|
26 | 26 | #----------------------------------------------------------------------------- |
|
27 | 27 | # Code |
@@ -33,7 +33,7 b' class IOLoopKernelManager(BlockingKernelManager):' | |||
|
33 | 33 | def _loop_default(self): |
|
34 | 34 | return ioloop.IOLoop.instance() |
|
35 | 35 | |
|
36 |
_restarter = Instance('IPython.kernel.ioloop |
|
|
36 | _restarter = Instance('IPython.kernel.ioloop.IOLoopKernelRestarter') | |
|
37 | 37 | |
|
38 | 38 | def start_restarter(self): |
|
39 | 39 | if self.autorestart and self.has_kernel: |
@@ -37,7 +37,7 b' class IOLoopKernelRestarter(LoggingConfigurable):' | |||
|
37 | 37 | def _loop_default(self): |
|
38 | 38 | return ioloop.IOLoop.instance() |
|
39 | 39 | |
|
40 |
kernel_manager = Instance('IPython.kernel. |
|
|
40 | kernel_manager = Instance('IPython.kernel.KernelManager') | |
|
41 | 41 | |
|
42 | 42 | time_to_dead = Float(3.0, config=True, |
|
43 | 43 | help="""Kernel heartbeat interval in seconds.""" |
@@ -48,7 +48,7 b' from IPython.kernel import (' | |||
|
48 | 48 | launch_kernel, |
|
49 | 49 | ) |
|
50 | 50 | from .zmq.session import Session |
|
51 |
from . |
|
|
51 | from .managerabc import ( | |
|
52 | 52 | ShellChannelABC, IOPubChannelABC, |
|
53 | 53 | HBChannelABC, StdInChannelABC, |
|
54 | 54 | KernelManagerABC |
@@ -42,7 +42,7 b' class MultiKernelManager(LoggingConfigurable):' | |||
|
42 | 42 | """A class for managing multiple kernels.""" |
|
43 | 43 | |
|
44 | 44 | kernel_manager_class = DottedObjectName( |
|
45 |
"IPython.kernel.ioloop |
|
|
45 | "IPython.kernel.ioloop.IOLoopKernelManager", config=True, | |
|
46 | 46 | help="""The kernel manager class. This is configurable to allow |
|
47 | 47 | subclassing of the KernelManager for customized behavior. |
|
48 | 48 | """ |
@@ -7,7 +7,7 b' from unittest import TestCase' | |||
|
7 | 7 | from IPython.testing import decorators as dec |
|
8 | 8 | |
|
9 | 9 | from IPython.config.loader import Config |
|
10 |
from IPython.kernel |
|
|
10 | from IPython.kernel import KernelManager | |
|
11 | 11 | |
|
12 | 12 | class TestKernelManager(TestCase): |
|
13 | 13 |
@@ -15,7 +15,7 b' from Queue import Empty' | |||
|
15 | 15 | |
|
16 | 16 | import nose.tools as nt |
|
17 | 17 | |
|
18 |
from ..blocking |
|
|
18 | from IPython.kernel.blocking import BlockingKernelManager | |
|
19 | 19 | |
|
20 | 20 | |
|
21 | 21 | from IPython.testing import decorators as dec |
@@ -8,7 +8,7 b' from IPython.testing import decorators as dec' | |||
|
8 | 8 | |
|
9 | 9 | from IPython.config.loader import Config |
|
10 | 10 | from IPython.utils.localinterfaces import LOCALHOST |
|
11 |
from IPython.kernel |
|
|
11 | from IPython.kernel import KernelManager | |
|
12 | 12 | from IPython.kernel.multikernelmanager import MultiKernelManager |
|
13 | 13 | |
|
14 | 14 | class TestKernelManager(TestCase): |
@@ -22,7 +22,7 b' from subprocess import Popen, PIPE' | |||
|
22 | 22 | |
|
23 | 23 | import nose.tools as nt |
|
24 | 24 | |
|
25 |
from IPython.kernel.blocking |
|
|
25 | from IPython.kernel.blocking import BlockingKernelManager | |
|
26 | 26 | from IPython.utils import path, py3compat |
|
27 | 27 | |
|
28 | 28 | #------------------------------------------------------------------------------- |
General Comments 0
You need to be logged in to leave comments.
Login now