mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
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
This commit is contained in:
parent
45f79e0509
commit
a9db0585d6
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user