Skip to content

Commit f978dc8

Browse files
committed
Add toolbar icon to restart and run all
1 parent e437fa2 commit f978dc8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

notebook/static/notebook/js/actions.js

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ define([
117117
}
118118
},
119119
'confirm-restart-kernel-and-run-all-cells': {
120+
icon: 'fa-refresh',
120121
cmd: i18n.msg._('confirm restart kernel and run all cells'),
121122
help: i18n.msg._('restart the kernel, then re-run the whole notebook (with dialog)'),
122123
handler: function (env) {

notebook/static/notebook/js/maintoolbar.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,16 @@ define([
5353
[ [new toolbar.Button('jupyter-notebook:run-cell-and-select-next',
5454
{label: i18n.msg._('Run')}),
5555
'jupyter-notebook:interrupt-kernel',
56-
'jupyter-notebook:confirm-restart-kernel'
56+
'jupyter-notebook:confirm-restart-kernel',
57+
'jupyter-notebook:confirm-restart-kernel-and-run-all-cells'
5758
],
5859
'run_int'],
5960
['<add_celltype_list>'],
6061
[['jupyter-notebook:show-command-palette']]
6162
];
6263
this.construct(grps);
6364
};
64-
65+
6566
MainToolBar.prototype._pseudo_actions = {};
6667

6768
// add a cell type drop down to the maintoolbar.

0 commit comments

Comments
 (0)