From a9db0585d62e5f1c757d13d6fd951c2a478d49ac Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 30 Aug 2012 14:24:44 -0700 Subject: [PATCH] fix names of notebooks for download/save was using notebook.get('name') instead of notebook.metadata.get('name'), where the name is actually stored. The result was that all downloaded notebooks were called 'notebook'. closes #2227 --- IPython/frontend/html/notebook/nbmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/nbmanager.py b/IPython/frontend/html/notebook/nbmanager.py index dca6818f1..07625d133 100644 --- a/IPython/frontend/html/notebook/nbmanager.py +++ b/IPython/frontend/html/notebook/nbmanager.py @@ -117,7 +117,7 @@ class NotebookManager(LoggingConfigurable): # should match the Python in-memory format. kwargs['split_lines'] = False data = current.writes(nb, format, **kwargs) - name = nb.get('name','notebook') + name = nb.metadata.get('name','notebook') return last_modified, name, data def read_notebook_object(self, notebook_id):