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