Skip to content

Commit

Permalink
Merge pull request #2965 from betatim/restart-and-rerun-toolbar
Browse files Browse the repository at this point in the history
Add toolbar icon to restart and run all
  • Loading branch information
takluyver authored Jan 6, 2018
2 parents 9c7c213 + 3c83c85 commit e4529a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit e4529a4

Please sign in to comment.