Show More
@@ -593,10 +593,7 class NotebookRootHandler(AuthenticatedHandler): | |||||
593 | km = self.application.kernel_manager |
|
593 | km = self.application.kernel_manager | |
594 | files = nbm.list_notebooks() |
|
594 | files = nbm.list_notebooks() | |
595 | for f in files : |
|
595 | for f in files : | |
596 | nid = f['notebook_id'] |
|
596 | f['kernel_id'] = km.kernel_for_notebook(f['notebook_id']) | |
597 | kid = km.kernel_for_notebook(nid) |
|
|||
598 | if kid is not None: |
|
|||
599 | f['kernel_id'] = kid |
|
|||
600 | self.finish(jsonapi.dumps(files)) |
|
597 | self.finish(jsonapi.dumps(files)) | |
601 |
|
598 | |||
602 | @web.authenticated |
|
599 | @web.authenticated |
@@ -113,7 +113,7 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 == |
|
116 | if(kernel == null){ | |
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); |
General Comments 0
You need to be logged in to leave comments.
Login now