Show More
@@ -15,7 +15,6 b' import unittest' | |||||
15 |
|
15 | |||
16 | # Local imports |
|
16 | # Local imports | |
17 | from IPython.kernel.inprocess.blocking import BlockingInProcessKernelClient |
|
17 | from IPython.kernel.inprocess.blocking import BlockingInProcessKernelClient | |
18 | from IPython.kernel.inprocess.ipkernel import InProcessKernel |
|
|||
19 | from IPython.kernel.inprocess.manager import InProcessKernelManager |
|
18 | from IPython.kernel.inprocess.manager import InProcessKernelManager | |
20 |
|
19 | |||
21 | #----------------------------------------------------------------------------- |
|
20 | #----------------------------------------------------------------------------- |
@@ -13,7 +13,6 b'' | |||||
13 |
|
13 | |||
14 | from __future__ import absolute_import |
|
14 | from __future__ import absolute_import | |
15 |
|
15 | |||
16 | import zmq |
|
|||
17 | from zmq.eventloop import ioloop |
|
16 | from zmq.eventloop import ioloop | |
18 | from zmq.eventloop.zmqstream import ZMQStream |
|
17 | from zmq.eventloop.zmqstream import ZMQStream | |
19 |
|
18 |
@@ -17,13 +17,12 b' restarts the kernel if it dies.' | |||||
17 |
|
17 | |||
18 | from __future__ import absolute_import |
|
18 | from __future__ import absolute_import | |
19 |
|
19 | |||
20 | import zmq |
|
|||
21 | from zmq.eventloop import ioloop |
|
20 | from zmq.eventloop import ioloop | |
22 |
|
21 | |||
23 |
|
22 | |||
24 | from IPython.kernel.restarter import KernelRestarter |
|
23 | from IPython.kernel.restarter import KernelRestarter | |
25 | from IPython.utils.traitlets import ( |
|
24 | from IPython.utils.traitlets import ( | |
26 |
Instance, |
|
25 | Instance, | |
27 | ) |
|
26 | ) | |
28 |
|
27 | |||
29 | #----------------------------------------------------------------------------- |
|
28 | #----------------------------------------------------------------------------- |
@@ -26,7 +26,7 b' import zmq' | |||||
26 | from IPython.config.configurable import LoggingConfigurable |
|
26 | from IPython.config.configurable import LoggingConfigurable | |
27 | from IPython.utils.importstring import import_item |
|
27 | from IPython.utils.importstring import import_item | |
28 | from IPython.utils.traitlets import ( |
|
28 | from IPython.utils.traitlets import ( | |
29 |
Instance, Dict, Unicode, Any, DottedObjectName |
|
29 | Instance, Dict, Unicode, Any, DottedObjectName | |
30 | ) |
|
30 | ) | |
31 |
|
31 | |||
32 | #----------------------------------------------------------------------------- |
|
32 | #----------------------------------------------------------------------------- |
@@ -16,9 +16,6 b' Authors' | |||||
16 | # Imports |
|
16 | # Imports | |
17 | #----------------------------------------------------------------------------- |
|
17 | #----------------------------------------------------------------------------- | |
18 |
|
18 | |||
19 | # Stdlib imports |
|
|||
20 | from unittest import TestCase |
|
|||
21 |
|
||||
22 | # Third-party imports |
|
19 | # Third-party imports | |
23 | import nose.tools as nt |
|
20 | import nose.tools as nt | |
24 |
|
21 |
@@ -8,8 +8,6 b'' | |||||
8 | #----------------------------------------------------------------------------- |
|
8 | #----------------------------------------------------------------------------- | |
9 |
|
9 | |||
10 | import re |
|
10 | import re | |
11 | import sys |
|
|||
12 | import time |
|
|||
13 | from subprocess import PIPE |
|
11 | from subprocess import PIPE | |
14 | from Queue import Empty |
|
12 | from Queue import Empty | |
15 |
|
13 | |||
@@ -17,9 +15,7 b' import nose.tools as nt' | |||||
17 |
|
15 | |||
18 | from IPython.kernel import KernelManager |
|
16 | from IPython.kernel import KernelManager | |
19 |
|
17 | |||
20 |
|
||||
21 | from IPython.testing import decorators as dec |
|
18 | from IPython.testing import decorators as dec | |
22 | from IPython.utils import io |
|
|||
23 | from IPython.utils.traitlets import ( |
|
19 | from IPython.utils.traitlets import ( | |
24 | HasTraits, TraitError, Bool, Unicode, Dict, Integer, List, Enum, Any, |
|
20 | HasTraits, TraitError, Bool, Unicode, Dict, Integer, List, Enum, Any, | |
25 | ) |
|
21 | ) |
@@ -14,7 +14,6 b'' | |||||
14 |
|
14 | |||
15 | import os |
|
15 | import os | |
16 | import socket |
|
16 | import socket | |
17 | import sys |
|
|||
18 | from threading import Thread |
|
17 | from threading import Thread | |
19 |
|
18 | |||
20 | import zmq |
|
19 | import zmq |
@@ -25,7 +25,7 b' import uuid' | |||||
25 |
|
25 | |||
26 | from datetime import datetime |
|
26 | from datetime import datetime | |
27 | from signal import ( |
|
27 | from signal import ( | |
28 |
signal |
|
28 | signal, default_int_handler, SIGINT | |
29 | ) |
|
29 | ) | |
30 |
|
30 | |||
31 | # System library imports |
|
31 | # System library imports | |
@@ -37,11 +37,10 b' from zmq.eventloop.zmqstream import ZMQStream' | |||||
37 | from IPython.config.configurable import Configurable |
|
37 | from IPython.config.configurable import Configurable | |
38 | from IPython.core.error import StdinNotImplementedError |
|
38 | from IPython.core.error import StdinNotImplementedError | |
39 | from IPython.core import release |
|
39 | from IPython.core import release | |
40 | from IPython.utils import io |
|
|||
41 | from IPython.utils import py3compat |
|
40 | from IPython.utils import py3compat | |
42 | from IPython.utils.jsonutil import json_clean |
|
41 | from IPython.utils.jsonutil import json_clean | |
43 | from IPython.utils.traitlets import ( |
|
42 | from IPython.utils.traitlets import ( | |
44 |
Any, Instance, Float, Dict, |
|
43 | Any, Instance, Float, Dict, List, Set, Integer, Unicode, | |
45 | Type |
|
44 | Type | |
46 | ) |
|
45 | ) | |
47 |
|
46 |
@@ -1,7 +1,5 b'' | |||||
1 | import logging |
|
|||
2 |
|
|
1 | from logging import INFO, DEBUG, WARN, ERROR, FATAL | |
3 |
|
2 | |||
4 | import zmq |
|
|||
5 | from zmq.log.handlers import PUBHandler |
|
3 | from zmq.log.handlers import PUBHandler | |
6 |
|
4 | |||
7 | class EnginePUBHandler(PUBHandler): |
|
5 | class EnginePUBHandler(PUBHandler): |
@@ -5,9 +5,6 b'' | |||||
5 | #----------------------------------------------------------------------------- |
|
5 | #----------------------------------------------------------------------------- | |
6 | from __future__ import print_function |
|
6 | from __future__ import print_function | |
7 |
|
7 | |||
8 | # Standard library imports |
|
|||
9 | import sys |
|
|||
10 |
|
||||
11 | # Third-party imports |
|
8 | # Third-party imports | |
12 | import matplotlib |
|
9 | import matplotlib | |
13 | from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg |
|
10 | from matplotlib.backends.backend_agg import new_figure_manager, FigureCanvasAgg |
@@ -15,13 +15,6 b' Authors:' | |||||
15 | # Imports |
|
15 | # Imports | |
16 | #----------------------------------------------------------------------------- |
|
16 | #----------------------------------------------------------------------------- | |
17 |
|
17 | |||
18 | # Standard library imports |
|
|||
19 | import logging |
|
|||
20 | import os |
|
|||
21 | import re |
|
|||
22 | import socket |
|
|||
23 | import sys |
|
|||
24 |
|
||||
25 | try: |
|
18 | try: | |
26 | import cPickle |
|
19 | import cPickle | |
27 | pickle = cPickle |
|
20 | pickle = cPickle |
@@ -44,7 +44,6 b' from zmq.utils import jsonapi' | |||||
44 | from zmq.eventloop.ioloop import IOLoop |
|
44 | from zmq.eventloop.ioloop import IOLoop | |
45 | from zmq.eventloop.zmqstream import ZMQStream |
|
45 | from zmq.eventloop.zmqstream import ZMQStream | |
46 |
|
46 | |||
47 | from IPython.config.application import Application, boolean_flag |
|
|||
48 | from IPython.config.configurable import Configurable, LoggingConfigurable |
|
47 | from IPython.config.configurable import Configurable, LoggingConfigurable | |
49 | from IPython.utils import io |
|
48 | from IPython.utils import io | |
50 | from IPython.utils.importstring import import_item |
|
49 | from IPython.utils.importstring import import_item |
@@ -40,12 +40,12 b' from IPython.kernel import (' | |||||
40 | get_connection_file, get_connection_info, connect_qtconsole |
|
40 | get_connection_file, get_connection_info, connect_qtconsole | |
41 | ) |
|
41 | ) | |
42 | from IPython.testing.skipdoctest import skip_doctest |
|
42 | from IPython.testing.skipdoctest import skip_doctest | |
43 |
from IPython.utils import |
|
43 | from IPython.utils import openpy | |
44 | from IPython.utils.jsonutil import json_clean, encode_images |
|
44 | from IPython.utils.jsonutil import json_clean, encode_images | |
45 | from IPython.utils.process import arg_split |
|
45 | from IPython.utils.process import arg_split | |
46 | from IPython.utils import py3compat |
|
46 | from IPython.utils import py3compat | |
47 | from IPython.utils.traitlets import Instance, Type, Dict, CBool, CBytes |
|
47 | from IPython.utils.traitlets import Instance, Type, Dict, CBool, CBytes | |
48 |
from IPython.utils.warn import |
|
48 | from IPython.utils.warn import error | |
49 | from IPython.kernel.zmq.displayhook import ZMQShellDisplayHook |
|
49 | from IPython.kernel.zmq.displayhook import ZMQShellDisplayHook | |
50 | from IPython.kernel.zmq.datapub import ZMQDataPublisher |
|
50 | from IPython.kernel.zmq.datapub import ZMQDataPublisher | |
51 | from IPython.kernel.zmq.session import extract_header |
|
51 | from IPython.kernel.zmq.session import extract_header |
General Comments 0
You need to be logged in to leave comments.
Login now