Show More
@@ -177,6 +177,31 b' var IPython = (function (IPython) {' | |||||
177 | $([IPython.events]).on('notebook_save_failed.Notebook', function () { |
|
177 | $([IPython.events]).on('notebook_save_failed.Notebook', function () { | |
178 | nnw.set_message("Notebook save failed"); |
|
178 | nnw.set_message("Notebook save failed"); | |
179 | }); |
|
179 | }); | |
|
180 | ||||
|
181 | // Checkpoint events | |||
|
182 | $([IPython.events]).on('checkpoint_created.Notebook', function (evt, data) { | |||
|
183 | var msg = "Checkpoint created"; | |||
|
184 | if (data.last_modified) { | |||
|
185 | var d = new Date(data.last_modified); | |||
|
186 | msg = msg + ": " + d.format("HH:MM:ss"); | |||
|
187 | } | |||
|
188 | nnw.set_message(msg, 2000); | |||
|
189 | }); | |||
|
190 | $([IPython.events]).on('checkpoint_failed.Notebook', function () { | |||
|
191 | nnw.set_message("Checkpoint failed"); | |||
|
192 | }); | |||
|
193 | $([IPython.events]).on('checkpoint_deleted.Notebook', function () { | |||
|
194 | nnw.set_message("Checkpoint deleted", 500); | |||
|
195 | }); | |||
|
196 | $([IPython.events]).on('checkpoint_delete_failed.Notebook', function () { | |||
|
197 | nnw.set_message("Checkpoint delete failed"); | |||
|
198 | }); | |||
|
199 | $([IPython.events]).on('checkpoint_restoring.Notebook', function () { | |||
|
200 | nnw.set_message("Restoring to checkpoint...", 500); | |||
|
201 | }); | |||
|
202 | $([IPython.events]).on('checkpoint_restore_failed.Notebook', function () { | |||
|
203 | nnw.set_message("Checkpoint restore failed"); | |||
|
204 | }); | |||
180 |
|
205 | |||
181 | }; |
|
206 | }; | |
182 |
|
207 |
General Comments 0
You need to be logged in to leave comments.
Login now