|
|
|
|
@ -20,7 +20,7 @@ var IPython = (function (IPython) {
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A MenuBar Class to generate the menubar of IPython noteboko
|
|
|
|
|
* A MenuBar Class to generate the menubar of IPython notebook
|
|
|
|
|
* @Class MenuBar
|
|
|
|
|
*
|
|
|
|
|
* @constructor
|
|
|
|
|
@ -110,8 +110,8 @@ var IPython = (function (IPython) {
|
|
|
|
|
this.element.find('#restore_checkpoint').click(function () {
|
|
|
|
|
});
|
|
|
|
|
this.element.find('#kill_and_exit').click(function () {
|
|
|
|
|
IPython.notebook.kernel.kill();
|
|
|
|
|
setTimeout(function(){window.close();}, 200);
|
|
|
|
|
IPython.notebook.session.delete_session();
|
|
|
|
|
setTimeout(function(){window.close();}, 500);
|
|
|
|
|
});
|
|
|
|
|
// Edit
|
|
|
|
|
this.element.find('#cut_cell').click(function () {
|
|
|
|
|
|