Skip to content

Commit

Permalink
Merge pull request #148 from Carreau/restart-and-clear
Browse files Browse the repository at this point in the history
Add ability to restart and clear all.
  • Loading branch information
minrk committed Jul 2, 2015
2 parents 92b9699 + 66a9f50 commit b79c6ad
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion notebook/static/notebook/js/notebook.js
Original file line number Diff line number Diff line change
Expand Up @@ -1631,11 +1631,18 @@ define(function (require) {
),
buttons : {
"Continue running" : {},
"Restart" : {
"Clear all outputs & restart" : {
"class" : "btn-danger",
"click" : function(){
that.clear_all_output();
that.kernel.restart();
},
"Restart" : {
"class" : "btn-warning",
"click" : function() {
that.kernel.restart();
}
},
}
}
});
Expand Down

0 comments on commit b79c6ad

Please sign in to comment.