Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
js comment about session id in first message
  • Loading branch information
minrk committed Apr 26, 2013
commit 5b087cd0a152a7505a3eafcf96d8b8c30b7d5933
2 changes: 2 additions & 0 deletions IPython/frontend/html/notebook/static/js/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ var IPython = (function (IPython) {
this.stdin_channel = new this.WebSocket(ws_url + "/stdin");
this.iopub_channel = new this.WebSocket(ws_url + "/iopub");
send_cookie = function(){
// send the session id so the Session object Python-side
// has the same identity
this.send(that.session_id + ':' + document.cookie);
};
var already_called_onclose = false; // only alert once
Expand Down