为什么在ipython会议期间随机出现神秘的新线角色?

发布于 2025-02-03 15:11:26 字数 1008 浏览 4 评论 0原文

问题

newline字符随机出现在我的终端窗口中,如果我的ipython会话运行超过几分钟。

屏幕截图/图

“问题的图”


上下文

OS:

Edition Windows 11 Enterprise
Version 21H2
Installed on    ‎3/‎7/‎2022
OS build    22000.708
Experience  Windows Feature Experience Pack 1000.22000.708.0

当我使用Windows 10时,问题也发生。

终端信息:

Windows Terminal Preview
Version: 1.14.1452.0
Profile: PowerShell Core, version: 7.2.4

...尽管我遇到了问题,但在其他Windows终端版本以及其他版本的PowerShell上出现。

Python信息:

  • Python 3.8.10(默认,5月19日2021,13:12:57)[MSC V.1916 64位(AMD64)]
  • matplotlib 3.4.3

其他详细信息:

这似乎只有在使用matplotlib的情况下,即在绘图实例化时就会发生。我正在使用QT5AGG后端。

如果需要进一步的信息,请让我知道。提前致谢!

Problem

Newline characters randomly appear in my terminal window if I've had an IPython session running for more than a few minutes.

Screenshots/diagram

Diagram of the problem


Context

OS:

Edition Windows 11 Enterprise
Version 21H2
Installed on    ‎3/‎7/‎2022
OS build    22000.708
Experience  Windows Feature Experience Pack 1000.22000.708.0

The problem also occurred when I was using Windows 10.

Terminal info:

Windows Terminal Preview
Version: 1.14.1452.0
Profile: PowerShell Core, version: 7.2.4

...though I've had the problem occur on other Windows Terminal versions as well as other versions of PowerShell.

Python info:

  • Python 3.8.10 (default, May 19 2021, 13:12:57) [MSC v.1916 64 bit (AMD64)]
  • matplotlib 3.4.3

Other details:

This seems to only happen when matplotlib has been used, namely when a plot has been instantiated. I'm using the Qt5Agg backend.

Please let me know if any further info is needed. Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文