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
pull/37/head
Fernando Perez 14 years ago
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…
Cancel
Save