Show More
@@ -2432,7 +2432,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
2432 | result = fn(*args, **kwargs) |
|
2432 | result = fn(*args, **kwargs) | |
2433 |
|
2433 | |||
2434 | # The code below prevents the output from being displayed |
|
2434 | # The code below prevents the output from being displayed | |
2435 |
# when using magics with deco |
|
2435 | # when using magics with decorator @output_can_be_silenced | |
2436 | # when the last Python token in the expression is a ';'. |
|
2436 | # when the last Python token in the expression is a ';'. | |
2437 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): |
|
2437 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): | |
2438 | if DisplayHook.semicolon_at_end_of_expression(magic_arg_s): |
|
2438 | if DisplayHook.semicolon_at_end_of_expression(magic_arg_s): | |
@@ -2493,7 +2493,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
2493 | result = fn(*args, **kwargs) |
|
2493 | result = fn(*args, **kwargs) | |
2494 |
|
2494 | |||
2495 | # The code below prevents the output from being displayed |
|
2495 | # The code below prevents the output from being displayed | |
2496 |
# when using magics with deco |
|
2496 | # when using magics with decorator @output_can_be_silenced | |
2497 | # when the last Python token in the expression is a ';'. |
|
2497 | # when the last Python token in the expression is a ';'. | |
2498 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): |
|
2498 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): | |
2499 | if DisplayHook.semicolon_at_end_of_expression(cell): |
|
2499 | if DisplayHook.semicolon_at_end_of_expression(cell): |
General Comments 0
You need to be logged in to leave comments.
Login now