mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +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': {
|
'confirm-restart-kernel-and-run-all-cells': {
|
||||||
|
icon: 'fa-recycle',
|
||||||
cmd: i18n.msg._('confirm restart kernel and run all cells'),
|
cmd: i18n.msg._('confirm restart kernel and run all cells'),
|
||||||
help: i18n.msg._('restart the kernel, then re-run the whole notebook (with dialog)'),
|
help: i18n.msg._('restart the kernel, then re-run the whole notebook (with dialog)'),
|
||||||
handler: function (env) {
|
handler: function (env) {
|
||||||
|
@ -53,7 +53,8 @@ define([
|
|||||||
[ [new toolbar.Button('jupyter-notebook:run-cell-and-select-next',
|
[ [new toolbar.Button('jupyter-notebook:run-cell-and-select-next',
|
||||||
{label: i18n.msg._('Run')}),
|
{label: i18n.msg._('Run')}),
|
||||||
'jupyter-notebook:interrupt-kernel',
|
'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'],
|
'run_int'],
|
||||||
['<add_celltype_list>'],
|
['<add_celltype_list>'],
|
||||||
@ -61,7 +62,7 @@ define([
|
|||||||
];
|
];
|
||||||
this.construct(grps);
|
this.construct(grps);
|
||||||
};
|
};
|
||||||
|
|
||||||
MainToolBar.prototype._pseudo_actions = {};
|
MainToolBar.prototype._pseudo_actions = {};
|
||||||
|
|
||||||
// add a cell type drop down to the maintoolbar.
|
// add a cell type drop down to the maintoolbar.
|
||||||
|
Loading…
Reference in New Issue
Block a user