Skip to content
This repository
  • 2 commits
  • 1 file changed
  • 0 comments
  • 2 contributors
Aug 30, 2012
Min RK minrk 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
02bebd7
Fernando Perez fperez 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
eb8ae02

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  IPython/frontend/html/notebook/nbmanager.py
2  IPython/frontend/html/notebook/nbmanager.py
@@ -117,7 +117,7 @@ def get_notebook(self, notebook_id, format=u'json'):
117 117 # should match the Python in-memory format.
118 118 kwargs['split_lines'] = False
119 119 data = current.writes(nb, format, **kwargs)
120   - name = nb.get('name','notebook')
  120 + name = nb.metadata.get('name','notebook')
121 121 return last_modified, name, data
122 122
123 123 def read_notebook_object(self, notebook_id):

No commit comments for this range

Something went wrong with that request. Please try again.