mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Add toolbar icon to restart and run all
This commit is contained in:
parent
e437fa2ceb
commit
b2fe5a4069
@ -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) {
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user