Show More
@@ -15,7 +15,7 b' Things to do:' | |||||
15 | #----------------------------------------------------------------------------- |
|
15 | #----------------------------------------------------------------------------- | |
16 | from __future__ import print_function |
|
16 | from __future__ import print_function | |
17 |
|
17 | |||
18 |
# Standard library imports |
|
18 | # Standard library imports | |
19 | import __builtin__ |
|
19 | import __builtin__ | |
20 | import atexit |
|
20 | import atexit | |
21 | import sys |
|
21 | import sys | |
@@ -28,10 +28,11 b' from datetime import datetime' | |||||
28 | from signal import ( |
|
28 | from signal import ( | |
29 | signal, default_int_handler, SIGINT, SIG_IGN |
|
29 | signal, default_int_handler, SIGINT, SIG_IGN | |
30 | ) |
|
30 | ) | |
31 | # System library imports. |
|
31 | ||
|
32 | # System library imports | |||
32 | import zmq |
|
33 | import zmq | |
33 |
|
34 | |||
34 |
# Local imports |
|
35 | # Local imports | |
35 | from IPython.core import pylabtools |
|
36 | from IPython.core import pylabtools | |
36 | from IPython.config.configurable import Configurable |
|
37 | from IPython.config.configurable import Configurable | |
37 | from IPython.config.application import boolean_flag, catch_config_error |
|
38 | from IPython.config.application import boolean_flag, catch_config_error | |
@@ -45,7 +46,7 b' from IPython.utils import py3compat' | |||||
45 | from IPython.utils.frame import extract_module_locals |
|
46 | from IPython.utils.frame import extract_module_locals | |
46 | from IPython.utils.jsonutil import json_clean |
|
47 | from IPython.utils.jsonutil import json_clean | |
47 | from IPython.utils.traitlets import ( |
|
48 | from IPython.utils.traitlets import ( | |
48 | Any, Instance, Float, Dict, CaselessStrEnum, List, Set |
|
49 | Any, Instance, Float, Dict, CaselessStrEnum, List, Set, Integer, Unicode | |
49 | ) |
|
50 | ) | |
50 |
|
51 | |||
51 | from entry_point import base_launch_kernel |
|
52 | from entry_point import base_launch_kernel | |
@@ -87,6 +88,14 b' class Kernel(Configurable):' | |||||
87 | self.shell.user_ns = new |
|
88 | self.shell.user_ns = new | |
88 | self.shell.init_user_ns() |
|
89 | self.shell.init_user_ns() | |
89 |
|
90 | |||
|
91 | # identities: | |||
|
92 | int_id = Integer(-1) | |||
|
93 | ident = Unicode() | |||
|
94 | ||||
|
95 | def _ident_default(self): | |||
|
96 | return unicode(uuid.uuid4()) | |||
|
97 | ||||
|
98 | ||||
90 | # Private interface |
|
99 | # Private interface | |
91 |
|
100 | |||
92 | # Time to sleep after flushing the stdout/err buffers in each execute |
|
101 | # Time to sleep after flushing the stdout/err buffers in each execute |
General Comments 0
You need to be logged in to leave comments.
Login now