Skip to content

Commit

Permalink
fix undefined 'session_id' member in kernel.js
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Aug 27, 2011
1 parent 0f0306c commit 3048c01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions IPython/frontend/html/notebook/static/js/kernel.js
Expand Up @@ -20,6 +20,10 @@ var IPython = (function (IPython) {
this.shell_channel = null;
this.iopub_channel = null;
this.running = false;

this.username = "username";
this.session_id = utils.uuid();

if (typeof(WebSocket) !== 'undefined') {
this.WebSocket = WebSocket
} else if (typeof(MozWebSocket) !== 'undefined') {
Expand All @@ -34,8 +38,8 @@ var IPython = (function (IPython) {
var msg = {
header : {
msg_id : utils.uuid(),
username : "username",
session: this.session_id,
username : this.username,
session : this.session_id,
msg_type : msg_type
},
content : content,
Expand Down

0 comments on commit 3048c01

Please sign in to comment.