Merge pull request #2965 from betatim/restart-and-rerun-toolbar

Add toolbar icon to restart and run all
This commit is contained in:
Thomas Kluyver 2018-01-06 13:29:18 +00:00 committed by GitHub
commit e4529a46c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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-forward',
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.