Show More
@@ -152,7 +152,7 b' class NotebookManager(LoggingConfigurable):' | |||
|
152 | 152 | except: |
|
153 | 153 | raise web.HTTPError(500, u'Unreadable JSON notebook.') |
|
154 | 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 | 156 | return last_modified, nb |
|
157 | 157 | |
|
158 | 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