From ef162c6d5cd12afbced95e1382ccbcbfd90c0691 Mon Sep 17 00:00:00 2001 From: Kent Inverarity Date: Mon, 18 Jun 2012 10:35:16 +0930 Subject: [PATCH] Fix nb name truncating at first period in filename --- IPython/frontend/html/notebook/notebookmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/notebookmanager.py b/IPython/frontend/html/notebook/notebookmanager.py index bc8ec4a84..c9ce29a78 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 = os.path.split(path)[-1].split(u'.')[0] + nb.metadata.name = u'.'.join(os.path.split(path)[-1].split(u'.')[:-1]) return last_modified, nb def save_new_notebook(self, data, name=None, format=u'json'):