When using latest ipython with --simple-prompt, after opening a matplotlib plot, further input is limited to 100 characters, above which commands get "stuck", requiring an additional newline entry to register. When using prompt_toolkit, this behavior does not appear.
Example:
% python3 -m IPython -i --simple-prompt
Python 3.11.3 (main, Apr 7 2023, 19:29:16) [Clang 14.0.0 (clang-1400.0.29.202)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import matplotlib.pyplot as plt
In [2]: plt.plot([1,2,3])
Installed osx event loop hook.
Out[2]: [<matplotlib.lines.Line2D at 0x10a433b50>]
# < 100 chars: works
In [3]: avaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravar=1
# > 100 chars: command not accepted
In [4]: avaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravaravar=1
# [Ret hangs, does not accept command; another newline required to flush command]
When using latest ipython with
--simple-prompt, after opening a matplotlib plot, further input is limited to 100 characters, above which commands get "stuck", requiring an additional newline entry to register. When usingprompt_toolkit, this behavior does not appear.Example: