From bc7865ee6d01cdc328fe97a8eda9af858099e9c2 2011-08-19 23:21:09 From: Brian E. Granger Date: 2011-08-19 23:21:09 Subject: [PATCH] Fixing bug in new metadata implementation. --- diff --git a/IPython/frontend/html/notebook/notebookmanager.py b/IPython/frontend/html/notebook/notebookmanager.py index 53d9eaf..48b25a6 100644 --- a/IPython/frontend/html/notebook/notebookmanager.py +++ b/IPython/frontend/html/notebook/notebookmanager.py @@ -211,7 +211,8 @@ class NotebookManager(LoggingConfigurable): else: i = i+1 notebook_id = self.new_notebook_id(name) - nb = current.new_notebook(name=name) + metadata = current.new_metadata(name=name) + nb = current.new_notebook(metadata=metadata) with open(path,'w') as f: current.write(nb, f, u'json') return notebook_id