Skip to content

Commit 6e4ca6e

Browse files
tornariajonathanslenders
authored andcommitted
Disable workaround for ipython >= 8.18
1 parent e2e75c0 commit 6e4ca6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/prompt_toolkit/application/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -960,7 +960,8 @@ def run_in_thread() -> None:
960960
def _called_from_ipython() -> bool:
961961
try:
962962
return (
963-
"IPython/terminal/interactiveshell.py"
963+
sys.modules["IPython"].version_info < (8, 18, 0, "")
964+
and "IPython/terminal/interactiveshell.py"
964965
in sys._getframe(3).f_code.co_filename
965966
)
966967
except BaseException:

0 commit comments

Comments
 (0)