Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions notebook/static/notebook/js/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
5 changes: 3 additions & 2 deletions notebook/static/notebook/js/maintoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,16 @@ 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>'],
[['jupyter-notebook:show-command-palette']]
];
this.construct(grps);
};

MainToolBar.prototype._pseudo_actions = {};

// add a cell type drop down to the maintoolbar.
Expand Down