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