##// END OF EJS Templates
Fix a bug in renaming notebook...
Fix a bug in renaming notebook There was a bug in NotebookManager.save_notebook_object. Here is how to reproduce: 0. Make sure you don't have Untitled0. 1. Open new notebook Untitled0. 2. Rename it to something else. 3. Copy Untitled0.ipynb to the notebook dir from somewhere. (Do not use notebook UI.) 4. New copied Untitled0 cannot be opened. The renamed notebook is opened when tried. Indeed, accessing to http://localhost:XXXX/notebooks shows duplicated notebook_id. The problem was that NotebookManager.rev_mapping keeps old notebook name after renaming.

File last commit:

r2498:3eae1372
r7359:ef719b62
Show More
test_imports.py
26 lines | 581 B | text/x-python | PythonLexer
Brian Granger
background_jobs.py => lib/backgroundjob.py and imports updated.
r2011 # encoding: utf-8
def test_import_coloransi():
from IPython.utils import coloransi
Brian Granger
generics.py => utils/generics.py
r2022 def test_import_generics():
from IPython.utils import generics
Brian Granger
ipstruct.py => utils/ipstruct.py and imports updated.
r2030 def test_import_ipstruct():
from IPython.utils import ipstruct
Brian Granger
genutils.py => utils/genutils.py and updated imports and tests.
r2023
Brian Granger
PyColorize.py => utils/PyColorize.py and updated imports.
r2042 def test_import_PyColorize():
from IPython.utils import PyColorize
Brian Granger
rlineimpl.py utils/rlineimpl.py and imports updated.
r2044
def test_import_rlineimpl():
Brian Granger
ultraTB.py => core/ultratb.py and imports updated.
r2048 from IPython.utils import rlineimpl
def test_import_strdispatch():
Brian Granger
upgrade_dir.py => utils/upgradedir.py and updated imports.
r2049 from IPython.utils import strdispatch
def test_import_upgradedir():
from IPython.utils import upgradedir
Brian Granger
wildcard.py => utils/wildcard.py and updated imports.
r2051
def test_import_wildcard():
from IPython.utils import wildcard
Brian Granger
winconsole.py => utils/winconsole.py and imports updated.
r2052