Skip to content

Commit

Permalink
BUG: fix ipython console accessibility after MNEQtBrowser in Spyder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marsipu authored May 17, 2022
1 parent 47d7a8e commit 0d32321
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mne/viz/backends/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ def _qt_app_exec(app):
if is_python_signal_handler:
signal.signal(signal.SIGINT, signal.SIG_DFL)
try:
# Make IPython Console accessible again in Spyder
app.lastWindowClosed.connect(app.quit)
app.exec_()
finally:
# reset the SIGINT exception handler
Expand Down

0 comments on commit 0d32321

Please sign in to comment.