Skip to content

Commit

Permalink
Disable workaround for ipython >= 8.18
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Nov 27, 2023
1 parent 3e71b1e commit 55a45b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/prompt_toolkit/application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,8 @@ def run_in_thread() -> None:
def _called_from_ipython() -> bool:
try:
return (
"IPython/terminal/interactiveshell.py"
sys.modules["IPython"].version_info < (8, 18, 0, "")
and "IPython/terminal/interactiveshell.py"
in sys._getframe(3).f_code.co_filename
)
except BaseException:
Expand Down

0 comments on commit 55a45b1

Please sign in to comment.