mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Fixing bug in new metadata implementation.
This commit is contained in:
parent
5cb8bb1f27
commit
919a393622
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user