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