Skip to content

Commit 980674d

Browse files
committed
move utils.kernel (formerly entry_point and lib.kernel) to kernel.util
1 parent 395ed45 commit 980674d

10 files changed

Lines changed: 11 additions & 18 deletions

File tree

IPython/frontend/consoleapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from IPython.core.profiledir import ProfileDir
3737
from IPython.zmq.blockingkernelmanager import BlockingKernelManager
3838
from IPython.zmq.kernelmanager import KernelManager
39-
from IPython.utils.kernel import tunnel_to_kernel, find_connection_file, swallow_argv
39+
from IPython.kernel import tunnel_to_kernel, find_connection_file, swallow_argv
4040
from IPython.utils.path import filefind
4141
from IPython.utils.py3compat import str_to_bytes
4242
from IPython.utils.traitlets import (

IPython/frontend/html/notebook/notebookapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
)
7171
from IPython.utils.importstring import import_item
7272
from IPython.utils.localinterfaces import LOCALHOST
73-
from IPython.utils.kernel import swallow_argv
73+
from IPython.kernel import swallow_argv
7474
from IPython.utils.traitlets import (
7575
Dict, Unicode, Integer, List, Enum, Bool,
7676
DottedObjectName

IPython/frontend/qt/console/qtconsoleapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def gui_excepthook(exctype, value, tb):
6565
from IPython.frontend.qt.console import styles
6666
from IPython.frontend.qt.console.mainwindow import MainWindow
6767
from IPython.frontend.qt.kernelmanager import QtKernelManager
68-
from IPython.utils.kernel import tunnel_to_kernel, find_connection_file
68+
from IPython.kernel import tunnel_to_kernel, find_connection_file
6969
from IPython.utils.path import filefind
7070
from IPython.utils.py3compat import str_to_bytes
7171
from IPython.utils.traitlets import (

IPython/kernel/__init__.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
"""IPython.kernel has been replaced by IPython.parallel.
1+
"""IPython kernel bases"""
22

3-
The previous version of IPython's parallel library was located at this
4-
location (IPython.kernel). It has been moved to the IPython.parallel
5-
subpackage and has been refactored to use zeromq/pyzmq instead of twisted.
6-
7-
Please see INSERT URL for further details.
8-
"""
9-
10-
raise ImportError(__doc__)
3+
from .util import *

IPython/lib/kernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
"""[DEPRECATED] Utilities for connecting to kernels
22
3-
Moved to IPython.utils.kernel, where it always belonged.
3+
Moved to IPython.kernel.util
44
"""
55

66
import warnings
7-
warnings.warn("IPython.lib.kernel moved to IPython.utils.kernel in IPython 0.14",
7+
warnings.warn("IPython.lib.kernel moved to IPython.kernel in IPython 0.14",
88
DeprecationWarning
99
)
1010

11-
from IPython.utils.kernel import *
11+
from IPython.kernel.util import *
1212

IPython/zmq/kernelapp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
DottedObjectName,
4141
)
4242
from IPython.utils.importstring import import_item
43-
from IPython.utils.kernel import write_connection_file
43+
from IPython.kernel import write_connection_file
4444
# local imports
4545
from IPython.zmq.heartbeat import Heartbeat
4646
from IPython.zmq.parentpoller import ParentPollerUnix, ParentPollerWindows

IPython/zmq/kernelmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
Any, Instance, Type, Unicode, List, Integer, Bool, CaselessStrEnum
4141
)
4242
from IPython.utils.py3compat import str_to_bytes
43-
from IPython.utils.kernel import (
43+
from IPython.kernel import (
4444
write_connection_file,
4545
make_ipkernel_cmd,
4646
launch_kernel,

IPython/zmq/zmqshell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from IPython.core.magic import magics_class, line_magic, Magics
3636
from IPython.core.payloadpage import install_payload_page
3737
from IPython.inprocess.socket import SocketABC
38-
from IPython.utils.kernel import (
38+
from IPython.kernel import (
3939
get_connection_file, get_connection_info, connect_qtconsole
4040
)
4141
from IPython.testing.skipdoctest import skip_doctest

0 commit comments

Comments
 (0)