Show More
@@ -47,6 +47,7 b' from IPython.utils.ipstruct import Struct' | |||||
47 | from IPython.utils.module_paths import find_mod |
|
47 | from IPython.utils.module_paths import find_mod | |
48 | from IPython.utils.path import get_py_filename, shellglob |
|
48 | from IPython.utils.path import get_py_filename, shellglob | |
49 | from IPython.utils.timing import clock, clock2 |
|
49 | from IPython.utils.timing import clock, clock2 | |
|
50 | from IPython.core.displayhook import DisplayHook | |||
50 |
|
51 | |||
51 | #----------------------------------------------------------------------------- |
|
52 | #----------------------------------------------------------------------------- | |
52 | # Magic implementation classes |
|
53 | # Magic implementation classes | |
@@ -1461,7 +1462,10 b' class ExecutionMagics(Magics):' | |||||
1461 | disp = not args.no_display |
|
1462 | disp = not args.no_display | |
1462 | with capture_output(out, err, disp) as io: |
|
1463 | with capture_output(out, err, disp) as io: | |
1463 | self.shell.run_cell(cell) |
|
1464 | self.shell.run_cell(cell) | |
1464 | if args.output: |
|
1465 | if DisplayHook.semicolon_at_end_of_expression(cell): | |
|
1466 | if args.output in self.shell.user_ns: | |||
|
1467 | del self.shell.user_ns[args.output] | |||
|
1468 | elif args.output: | |||
1465 | self.shell.user_ns[args.output] = io |
|
1469 | self.shell.user_ns[args.output] = io | |
1466 |
|
1470 | |||
1467 | def parse_breakpoint(text, current_file): |
|
1471 | def parse_breakpoint(text, current_file): |
General Comments 0
You need to be logged in to leave comments.
Login now