ipython 报错“Shell is already running a gui event loop for tk.”

16 天前
 XIVN1987

升级了一下 ipython 执行就报上述错误,,执行步骤如下:

D:\Python38\vexe\Scripts>ipython --pylab=tk
Python 3.8.10 (tags/v3.8.10:3d8993a, May  3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 8.12.3 -- An enhanced Interactive Python. Type '?' for help.
Installed tk event loop hook.
Shell is already running a gui event loop for tk. Call with no arguments to disable the current loop.

In [1]: x = arange(0, 2*pi, pi/100)

In [2]: plot(x, sin(x))
Out[2]: [<matplotlib.lines.Line2D at 0x224b1e5ee20>]

In [3]:

执行 plot 后弹出 Figure 窗口,,但窗口无内容显示,,一直处于卡死状态,,关闭 Figure 窗口后 ipython 也终止执行

求教这个问题有大侠遇到吗??怎么解决?

486 次点击
所在节点    Python
1 条回复
XIVN1987
15 天前
创建的 issue: https://github.com/ipython/ipython/issues/14461

希望能解决吧,,

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/1048795

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX