Show More
@@ -49,7 +49,6 b' from zmq.eventloop.zmqstream import ZMQStream' | |||||
49 |
|
49 | |||
50 | from IPython.core.release import kernel_protocol_version |
|
50 | from IPython.core.release import kernel_protocol_version | |
51 | from IPython.config.configurable import Configurable, LoggingConfigurable |
|
51 | from IPython.config.configurable import Configurable, LoggingConfigurable | |
52 | from IPython.utils import io |
|
|||
53 | from IPython.utils.importstring import import_item |
|
52 | from IPython.utils.importstring import import_item | |
54 | from jupyter_client.jsonutil import extract_dates, squash_dates, date_default |
|
53 | from jupyter_client.jsonutil import extract_dates, squash_dates, date_default | |
55 | from IPython.utils.py3compat import (str_to_bytes, str_to_unicode, unicode_type, |
|
54 | from IPython.utils.py3compat import (str_to_bytes, str_to_unicode, unicode_type, | |
@@ -59,6 +58,8 b' from IPython.utils.traitlets import (CBytes, Unicode, Bool, Any, Instance, Set,' | |||||
59 | TraitError, |
|
58 | TraitError, | |
60 | ) |
|
59 | ) | |
61 | from jupyter_client.adapter import adapt |
|
60 | from jupyter_client.adapter import adapt | |
|
61 | from traitlets.log import get_logger | |||
|
62 | ||||
62 |
|
63 | |||
63 | #----------------------------------------------------------------------------- |
|
64 | #----------------------------------------------------------------------------- | |
64 | # utility functions |
|
65 | # utility functions | |
@@ -653,8 +654,9 b' class Session(Configurable):' | |||||
653 | msg = self.msg(msg_or_type, content=content, parent=parent, |
|
654 | msg = self.msg(msg_or_type, content=content, parent=parent, | |
654 | header=header, metadata=metadata) |
|
655 | header=header, metadata=metadata) | |
655 | if not os.getpid() == self.pid: |
|
656 | if not os.getpid() == self.pid: | |
656 |
|
|
657 | get_logger().warn("WARNING: attempted to send message from fork\n%s", | |
657 |
|
|
658 | msg | |
|
659 | ) | |||
658 | return |
|
660 | return | |
659 | buffers = [] if buffers is None else buffers |
|
661 | buffers = [] if buffers is None else buffers | |
660 | if self.adapt_version: |
|
662 | if self.adapt_version: |
General Comments 0
You need to be logged in to leave comments.
Login now