From 4773205bb4605ff82ff6c885de1d01984aba3ecf 2014-10-08 18:30:28 From: Jessica B. Hamrick <jhamrick@berkeley.edu> Date: 2014-10-08 18:30:28 Subject: [PATCH] Fix reference to session in notebook.js --- diff --git a/IPython/html/static/notebook/js/notebook.js b/IPython/html/static/notebook/js/notebook.js index fa1b9ab..77fbf96 100644 --- a/IPython/html/static/notebook/js/notebook.js +++ b/IPython/html/static/notebook/js/notebook.js @@ -258,7 +258,7 @@ define([ // TODO: Make killing the kernel configurable. var kill_kernel = false; if (kill_kernel) { - that.session.kill_kernel(); + that.kernel.kill(); } // if we are autosaving, trigger an autosave on nav-away. // still warn, because if we don't the autosave may fail. @@ -1654,7 +1654,7 @@ define([ "Restart" : { "class" : "btn-danger", "click" : function() { - that.session.restart_kernel(); + that.kernel.restart(); } } }