Skip to content

Commit

Permalink
Merge pull request spyder-ide#22594 from ccordoba12/issue-22593
Browse files Browse the repository at this point in the history
PR: Set shell banner attribute to be the one computed by us (IPython console)
  • Loading branch information
ccordoba12 authored Sep 27, 2024
2 parents efc51e8 + 3c21e38 commit 4308010
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 4308010

Please sign in to comment.