Skip to content

Commit

Permalink
Merge pull request #1753 from tkf/dead-event-2
Browse files Browse the repository at this point in the history
Clear window title when kernel is restarted
  • Loading branch information
ellisonbg committed May 22, 2012
2 parents 2f6f437 + daca0af commit 9567a45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ var IPython = (function (IPython) {
that.set_message("Kernel busy");
});
$([IPython.events]).on('status_restarting.Kernel',function () {
IPython.save_widget.update_document_title();
that.set_message("Restarting kernel",500);
});
$([IPython.events]).on('status_interrupting.Kernel',function () {
Expand All @@ -64,7 +65,7 @@ var IPython = (function (IPython) {
title: "Dead kernel",
buttons : {
"Restart": function () {
that.set_message("Restarting kernel",500);
$([IPython.events]).trigger('status_restarting.Kernel');
IPython.notebook.start_kernel();
$(this).dialog('close');
},
Expand Down

0 comments on commit 9567a45

Please sign in to comment.