mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-31 13:40:29 +08:00
Merge pull request #2365 from minrk/nbname
fix names of notebooks for download/save from the browser, so that instead of being called 'notebook' the resulting file has the actual notebook name. closes #2227
This commit is contained in:
commit
4587c15f40
@ -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