Add toolbar icon to restart and run all

This commit is contained in:
Tim Head 2017-10-22 11:12:20 +02:00
parent e437fa2ceb
commit b2fe5a4069
2 changed files with 4 additions and 2 deletions

View File

@ -117,6 +117,7 @@ define([
}
},
'confirm-restart-kernel-and-run-all-cells': {
icon: 'fa-recycle',
cmd: i18n.msg._('confirm restart kernel and run all cells'),
help: i18n.msg._('restart the kernel, then re-run the whole notebook (with dialog)'),
handler: function (env) {

View File

@ -53,7 +53,8 @@ define([
[ [new toolbar.Button('jupyter-notebook:run-cell-and-select-next',
{label: i18n.msg._('Run')}),
'jupyter-notebook:interrupt-kernel',
'jupyter-notebook:confirm-restart-kernel'
'jupyter-notebook:confirm-restart-kernel',
'jupyter-notebook:confirm-restart-kernel-and-run-all-cells'
],
'run_int'],
['<add_celltype_list>'],
@ -61,7 +62,7 @@ define([
];
this.construct(grps);
};
MainToolBar.prototype._pseudo_actions = {};
// add a cell type drop down to the maintoolbar.