Skip to content

Commit

Permalink
Notebook js consistency with generic IPython message format.
Browse files Browse the repository at this point in the history
A message's unique identifier and type are stored in the header but are
also accessible at the top-level for convenience.
  • Loading branch information
kramer314 committed Jun 21, 2012
1 parent a1c5e37 commit 89ffa1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion IPython/frontend/html/notebook/static/js/kernel.js
Expand Up @@ -36,13 +36,16 @@ var IPython = (function (IPython) {


Kernel.prototype._get_msg = function (msg_type, content) {
var uuid = utils.uuid()
var msg = {
header : {
msg_id : utils.uuid(),
msg_id : uuid,
username : this.username,
session : this.session_id,
msg_type : msg_type
},
msg_id : uuid,
msg_type : msg_type,
content : content,
parent_header : {}
};
Expand Down

0 comments on commit 89ffa1e

Please sign in to comment.