##// END OF EJS Templates
test kernel for undefined rather than off
Matthias BUSSONNIER -
Show More
@@ -597,8 +597,6 b' class NotebookRootHandler(AuthenticatedHandler):'
597 kid = km.kernel_for_notebook(nid)
597 kid = km.kernel_for_notebook(nid)
598 if kid is not None:
598 if kid is not None:
599 f['kernel_status']=kid
599 f['kernel_status']=kid
600 else:
601 f['kernel_status']='off'
602 self.finish(jsonapi.dumps(files))
600 self.finish(jsonapi.dumps(files))
603
601
604 @web.authenticated
602 @web.authenticated
@@ -113,7 +113,7 b' var IPython = (function (IPython) {'
113 this.add_link(notebook_id, nbname, item);
113 this.add_link(notebook_id, nbname, item);
114 if (!IPython.read_only){
114 if (!IPython.read_only){
115 // hide delete buttons when readonly
115 // hide delete buttons when readonly
116 if(kernel == 'off'){
116 if(kernel == undefined){
117 this.add_delete_button(item);
117 this.add_delete_button(item);
118 } else {
118 } else {
119 this.add_shutdown_button(item,kernel);
119 this.add_shutdown_button(item,kernel);
@@ -192,7 +192,6 b' var IPython = (function (IPython) {'
192 type : "DELETE",
192 type : "DELETE",
193 dataType : "json",
193 dataType : "json",
194 success : function (data, status, xhr) {
194 success : function (data, status, xhr) {
195 console.log('kernel killed');
196 that.load_list();
195 that.load_list();
197 }
196 }
198 };
197 };
General Comments 0
You need to be logged in to leave comments. Login now