From 68a629ffc50ff81de8b41543179b992cdfed60b2 2012-06-10 23:31:20 From: Fernando Perez Date: 2012-06-10 23:31:20 Subject: [PATCH] Merge pull request #1886 from tkf/fix-notebook-rename Fix a bug in renaming notebook caused by keeping a stale reference to old names. --- diff --git a/IPython/frontend/html/notebook/notebookmanager.py b/IPython/frontend/html/notebook/notebookmanager.py index 6dea1b2..bc8ec4a 100644 --- a/IPython/frontend/html/notebook/notebookmanager.py +++ b/IPython/frontend/html/notebook/notebookmanager.py @@ -228,6 +228,7 @@ class NotebookManager(LoggingConfigurable): 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."""