From 9e003ebfc06bc5799161a09ef0d816fe4e61c39e 2021-05-11 21:13:55 From: Matthias Bussonnier Date: 2021-05-11 21:13:55 Subject: [PATCH] Merge pull request #12952 from MrMino/quiet_recall Ensure %recall does not show error after argument eval --- diff --git a/IPython/core/magics/history.py b/IPython/core/magics/history.py index 3b95ee7..bc1bfb9 100644 --- a/IPython/core/magics/history.py +++ b/IPython/core/magics/history.py @@ -282,6 +282,7 @@ class HistoryMagics(Magics): return else: self.shell.set_next_input(cmd.rstrip()) + return print("Couldn't evaluate or find in history:", arg) @line_magic