Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toolbar icon to restart and run all #2965

Merged
merged 2 commits into from
Jan 6, 2018
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