简体   繁体   English

是否可以在不降级到 Spyder 3 的情况下将 ipykernel 降级到 4.10.0?

[英]Is it possible to downgrade ipykernel to 4.10.0 without downgrading to Spyder 3?

I am having some trouble with the Spyder IPython kernel crashing when I use the Tkinter backend.当我使用 Tkinter 后端时,我遇到了 Spyder IPython kernel 崩溃的问题。 According to this bug report , it is a problem with the latest version of ipykernel.根据这个错误报告,这是最新版本的 ipykernel 的问题。 Additionally, when I use the qt5 backend it is very slow -- this is also a problem with version 5 of the ipykernel (I checked by downgrading ipykernel and using spyder 3, then updating ipykernel again and reproducing the behavior).此外,当我使用 qt5 后端时,它非常慢 - 这也是 ipykernel 版本 5 的问题(我通过降级 ipykernel 并使用 spyder 3 进行检查,然后再次更新 ipykernel 并重现行为)。

I would like to downgrade the ipykernel package to version 4.10.0 without downgrading from Spyder 4 to Spyder 3. Is this possible?我想在不从 Spyder 4 降级到 Spyder 3 的情况下将 ipykernel package 降级到版本 4.10.0。这可能吗? When I use the conda command conda install ipykernel=4.10.0 it wants to automatically downgrade Spyder, but I wonder if there is a workaround.当我使用 conda 命令conda install ipykernel=4.10.0它想自动降级 Spyder,但我想知道是否有解决方法。

This is not really an answer to the original question, but I created a bug report here , and it was discovered that the bug with qt4 and qt5 rendering matplotlib plots is specific to ipykernel version 5.3.3 .这并不是对原始问题的真正答案,但我在这里创建了一个错误报告,发现使用 qt4 和 qt5 渲染 matplotlib 绘图的错误特定于ipykernel version 5.3.3 To fix that particular problem, you only need to downgrade to version 5.3.2 using the command conda install ipykernel=5.3.2 which is compatible with IPython 4.要解决该特定问题,您只需使用与 IPython 4 兼容的命令conda install ipykernel=5.3.2降级到版本 5.3.2。

Additionally, it looks like a patch has been added to the Tkinter bug (see link in original question) that any user can add themselves.此外,似乎已将补丁添加到 Tkinter 错误(请参阅原始问题中的链接),任何用户都可以自己添加。 It appears that all of this should be fixed once ipykernel 5.3.4 gets added to the default conda channel.一旦ipykernel 5.3.4添加到默认的 conda 通道,似乎所有这些都应该得到修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM