Skip to content

Commit

Permalink
Merge pull request ipython#1886 from tkf/fix-notebook-rename
Browse files Browse the repository at this point in the history
Fix a bug in renaming notebook caused by keeping a stale reference to old names.
  • Loading branch information
fperez committed Jun 10, 2012
2 parents b7f2d71 + fd42097 commit f8658c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IPython/frontend/html/notebook/notebookmanager.py
Expand Up @@ -228,6 +228,7 @@ def save_notebook_object(self, notebook_id, nb):
os.unlink(old_pypath)
self.mapping[notebook_id] = new_name
self.rev_mapping[new_name] = notebook_id
del self.rev_mapping[old_name]

def delete_notebook(self, notebook_id):
"""Delete notebook by notebook_id."""
Expand Down

0 comments on commit f8658c7

Please sign in to comment.