From 042b97b9f08d0d7b5c45ce30838f429fe4520995 2012-06-18 05:02:45 From: Kent Inverarity Date: 2012-06-18 05:02:45 Subject: [PATCH] change to minrk's suggestion from mailing list --- diff --git a/IPython/frontend/html/notebook/notebookmanager.py b/IPython/frontend/html/notebook/notebookmanager.py index c9ce29a..c20da01 100644 --- a/IPython/frontend/html/notebook/notebookmanager.py +++ b/IPython/frontend/html/notebook/notebookmanager.py @@ -152,7 +152,7 @@ class NotebookManager(LoggingConfigurable): except: raise web.HTTPError(500, u'Unreadable JSON notebook.') # Always use the filename as the notebook name. - nb.metadata.name = u'.'.join(os.path.split(path)[-1].split(u'.')[:-1]) + nb.metadata.name = os.path.splitext(os.path.basename(path))[0] return last_modified, nb def save_new_notebook(self, data, name=None, format=u'json'):