##// END OF EJS Templates
move restart dialog to notebook.js
MinRK -
Show More
@@ -123,6 +123,18 b' var IPython = (function (IPython) {'
123 var index = that.find_cell_index(data.cell);
123 var index = that.find_cell_index(data.cell);
124 that.select(index);
124 that.select(index);
125 });
125 });
126
127 $([IPython.events]).on('status_autorestarting.Kernel', function () {
128 IPython.dialog.modal({
129 title: "Kernel Restarting",
130 body: "The kernel appears to have died. It will restart automatically.",
131 buttons: {
132 OK : {
133 class : "btn-primary"
134 }
135 }
136 });
137 });
126
138
127
139
128 $(document).keydown(function (event) {
140 $(document).keydown(function (event) {
@@ -86,18 +86,6 b' var IPython = (function (IPython) {'
86 IPython.save_widget.update_document_title();
86 IPython.save_widget.update_document_title();
87 knw.set_message("Restarting kernel", 2000);
87 knw.set_message("Restarting kernel", 2000);
88 });
88 });
89
90 $([IPython.events]).on('status_autorestarting.Kernel',function () {
91 IPython.dialog.modal({
92 title: "Kernel Restarting",
93 body: "The kernel appears to have died. It is being restarted.",
94 buttons: {
95 OK : {
96 class : "btn-primary"
97 }
98 }
99 });
100 });
101
89
102 $([IPython.events]).on('status_interrupting.Kernel',function () {
90 $([IPython.events]).on('status_interrupting.Kernel',function () {
103 knw.set_message("Interrupting kernel");
91 knw.set_message("Interrupting kernel");
General Comments 0
You need to be logged in to leave comments. Login now