Show More
@@ -152,7 +152,7 b' class NotebookManager(LoggingConfigurable):' | |||||
152 | except: |
|
152 | except: | |
153 | raise web.HTTPError(500, u'Unreadable JSON notebook.') |
|
153 | raise web.HTTPError(500, u'Unreadable JSON notebook.') | |
154 | # Always use the filename as the notebook name. |
|
154 | # Always use the filename as the notebook name. | |
155 |
nb.metadata.name = |
|
155 | nb.metadata.name = os.path.splitext(os.path.basename(path))[0] | |
156 | return last_modified, nb |
|
156 | return last_modified, nb | |
157 |
|
157 | |||
158 | def save_new_notebook(self, data, name=None, format=u'json'): |
|
158 | def save_new_notebook(self, data, name=None, format=u'json'): |
General Comments 0
You need to be logged in to leave comments.
Login now