Show More
@@ -118,7 +118,7 class NotebookHandler(IPythonHandler): | |||||
118 | def delete(self, notebook_path): |
|
118 | def delete(self, notebook_path): | |
119 | nbm = self.notebook_manager |
|
119 | nbm = self.notebook_manager | |
120 | name, path = nbm.named_notebook_path(notebook_path) |
|
120 | name, path = nbm.named_notebook_path(notebook_path) | |
121 |
|
|
121 | nbm.delete_notebook(name, path) | |
122 | self.set_status(204) |
|
122 | self.set_status(204) | |
123 | self.finish() |
|
123 | self.finish() | |
124 |
|
124 |
@@ -279,10 +279,10 var IPython = (function (IPython) { | |||||
279 | } |
|
279 | } | |
280 | }; |
|
280 | }; | |
281 | if (notebooklist.notebookPath() == "") { |
|
281 | if (notebooklist.notebookPath() == "") { | |
282 | var url = notebooklist.baseProjectUrl() + 'api/notebooks/' + nbname; |
|
282 | var url = notebooklist.baseProjectUrl() + 'api/notebooks/' + nbname +'.ipynb'; | |
283 | } |
|
283 | } | |
284 | else { |
|
284 | else { | |
285 | var url = notebooklist.baseProjectUrl() + 'api/notebooks/' + notebooklist.notebookPath() + nbname; |
|
285 | var url = notebooklist.baseProjectUrl() + 'api/notebooks/' + notebooklist.notebookPath() + nbname + '.ipynb'; | |
286 | } |
|
286 | } | |
287 | $.ajax(url, settings); |
|
287 | $.ajax(url, settings); | |
288 | } |
|
288 | } |
General Comments 0
You need to be logged in to leave comments.
Login now