diff --git a/spyder/plugins/ipythonconsole/widgets/shell.py b/spyder/plugins/ipythonconsole/widgets/shell.py index 3c4bae540d7..21f805adde4 100644 --- a/spyder/plugins/ipythonconsole/widgets/shell.py +++ b/spyder/plugins/ipythonconsole/widgets/shell.py @@ -1207,6 +1207,11 @@ def _show_banner(self): cursor.setPosition(0) self._insert_plain_text(cursor, banner) + # We need to do this so the banner is available to other QtConsole + # methods (e.g. console resets). + # Fixes spyder-ide/spyder#22593 + self.banner = banner + # Only do this once self._is_banner_shown = True