Skip to content

Commit

Permalink
Backport PR #22594: PR: Set shell banner attribute to be the one comp…
Browse files Browse the repository at this point in the history
…uted by us (IPython console)
  • Loading branch information
ccordoba12 authored and meeseeksmachine committed Sep 27, 2024
1 parent 4af13c2 commit 8b8cef8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spyder/plugins/ipythonconsole/widgets/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8b8cef8

Please sign in to comment.