##// END OF EJS Templates
add IPython version to session header...
MinRK -
Show More
@@ -43,6 +43,7 b' from zmq.utils import jsonapi'
43 43 from zmq.eventloop.ioloop import IOLoop
44 44 from zmq.eventloop.zmqstream import ZMQStream
45 45
46 import IPython
46 47 from IPython.config.application import Application, boolean_flag
47 48 from IPython.config.configurable import Configurable, LoggingConfigurable
48 49 from IPython.utils.importstring import import_item
@@ -74,7 +75,7 b' def squash_unicode(obj):'
74 75 # globals and defaults
75 76 #-----------------------------------------------------------------------------
76 77
77
78 _version_info_list = list(IPython.version_info)
78 79 # ISO8601-ify datetime objects
79 80 json_packer = lambda obj: jsonapi.dumps(obj, default=date_default)
80 81 json_unpacker = lambda s: extract_dates(jsonapi.loads(s))
@@ -187,6 +188,7 b' class Message(object):'
187 188
188 189 def msg_header(msg_id, msg_type, username, session):
189 190 date = datetime.now()
191 version = _version_info_list
190 192 return locals()
191 193
192 194 def extract_header(msg_or_header):
General Comments 0
You need to be logged in to leave comments. Login now