Show More
@@ -2417,7 +2417,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
2417 | result = fn(*args, **kwargs) |
|
2417 | result = fn(*args, **kwargs) | |
2418 |
|
2418 | |||
2419 | # The code below prevents the output from being displayed |
|
2419 | # The code below prevents the output from being displayed | |
2420 |
# when using magics with deco |
|
2420 | # when using magics with decorator @output_can_be_silenced | |
2421 | # when the last Python token in the expression is a ';'. |
|
2421 | # when the last Python token in the expression is a ';'. | |
2422 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): |
|
2422 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): | |
2423 | if DisplayHook.semicolon_at_end_of_expression(magic_arg_s): |
|
2423 | if DisplayHook.semicolon_at_end_of_expression(magic_arg_s): | |
@@ -2478,7 +2478,7 b' class InteractiveShell(SingletonConfigurable):' | |||||
2478 | result = fn(*args, **kwargs) |
|
2478 | result = fn(*args, **kwargs) | |
2479 |
|
2479 | |||
2480 | # The code below prevents the output from being displayed |
|
2480 | # The code below prevents the output from being displayed | |
2481 |
# when using magics with deco |
|
2481 | # when using magics with decorator @output_can_be_silenced | |
2482 | # when the last Python token in the expression is a ';'. |
|
2482 | # when the last Python token in the expression is a ';'. | |
2483 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): |
|
2483 | if getattr(fn, magic.MAGIC_OUTPUT_CAN_BE_SILENCED, False): | |
2484 | if DisplayHook.semicolon_at_end_of_expression(cell): |
|
2484 | if DisplayHook.semicolon_at_end_of_expression(cell): |
General Comments 0
You need to be logged in to leave comments.
Login now