##// END OF EJS Templates
Notebook magic used old terminology "input"...
Matthias Bussonnier -
Show More
@@ -603,7 +603,7 b' Defaulting color scheme to \'NoColor\'"""'
603 hist = list(self.shell.history_manager.get_range())
603 hist = list(self.shell.history_manager.get_range())
604 if(len(hist)<=1):
604 if(len(hist)<=1):
605 raise ValueError('History is empty, cannot export')
605 raise ValueError('History is empty, cannot export')
606 for session, execution_count, input in hist[:-1]:
606 for session, execution_count, source in hist[:-1]:
607 cells.append(v4.new_code_cell(
607 cells.append(v4.new_code_cell(
608 execution_count=execution_count,
608 execution_count=execution_count,
609 source=source
609 source=source
@@ -625,7 +625,7 b' class NotebookExportMagicTests(TestCase):'
625 def test_notebook_export_json(self):
625 def test_notebook_export_json(self):
626 _ip = get_ipython()
626 _ip = get_ipython()
627 _ip.history_manager.reset() # Clear any existing history.
627 _ip.history_manager.reset() # Clear any existing history.
628 cmds = [u"a=1", u"def b():\n return a**2", u"print(a, b())"]
628 cmds = [u"a=1", u"def b():\n return a**2", u"print('noël, été', b())"]
629 for i, cmd in enumerate(cmds, start=1):
629 for i, cmd in enumerate(cmds, start=1):
630 _ip.history_manager.store_inputs(i, cmd)
630 _ip.history_manager.store_inputs(i, cmd)
631 with TemporaryDirectory() as td:
631 with TemporaryDirectory() as td:
General Comments 0
You need to be logged in to leave comments. Login now