##// END OF EJS Templates
move restart dialog to notebook.js
MinRK -
Show More
@@ -124,6 +124,18 b' var IPython = (function (IPython) {'
124 that.select(index);
124 that.select(index);
125 });
125 });
126
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 });
138
127
139
128 $(document).keydown(function (event) {
140 $(document).keydown(function (event) {
129 // console.log(event);
141 // console.log(event);
@@ -87,18 +87,6 b' var IPython = (function (IPython) {'
87 knw.set_message("Restarting kernel", 2000);
87 knw.set_message("Restarting kernel", 2000);
88 });
88 });
89
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
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");
104 });
92 });
General Comments 0
You need to be logged in to leave comments. Login now