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 b3c2b3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prompt_toolkit/application/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,8 @@ def run_in_thread() -> None:
def _called_from_ipython() -> bool:
try:
return (
sys.modules["IPython"].version_info < (8, 18, 0, "")
and
"IPython/terminal/interactiveshell.py"
in sys._getframe(3).f_code.co_filename
)
Expand Down

0 comments on commit b3c2b3c

Please sign in to comment.