本文介绍了在原子中使用氢的巨型IPKernelApp错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从几天前开始,几个月没问题之后,我开始在Atom中编辑代码时弹出一个巨大的错误框.我相信这是从Hydrogen插件获得的,很奇怪的是,即使出现此错误,代码仍然可以运行并且也可以执行我想要的操作.

Starting a few days ago, after months without issue, I began having a giant error box keep popping up when editing my code in Atom. I believe it is from the Hydrogen plugin, the weird thing is even with this error the code still runs and does what I want it too.

我创建了一个新的conda环境,仅安装了我需要的内容(熊猫,大熊猫,笛卡尔,朱庇特),甚至在Atom中使用新环境时,我也遇到了这个问题.我已经尝试升级ipykernel,但它已经是最新版本.

I created a new conda environment, installing only what I needed (pandas, geopandas, descartes, jupyter) and even when using the new environment in Atom I am getting this issue. I've tried upgrading ipykernel but it is already the most recent version.

错误消息

推荐答案

最新的jedi(0.18)版本与最新的IPython版本不兼容,请参见此讨论. IPython的下一版本(8.0)具有兼容性修补程序,但尚未发布,而先前的版本(7.x)刚刚收到了补丁,但截至今天尚未发布.

The latest jedi (0.18) release is incompatible with the latest IPython release, see this discussion. The IPython next version (8.0) has a compatibility fix but was not yet released, while the previous version (7.x) just received a patch however was not released yet as of today.

解决方法是降级jedi:

The workaround is to downgrade jedi:

pip install jedi==0.17.2

将来,您可以在删除所有特定于您的安装的路径片段之后搜索引用的最后两行,这是在搜索:

In future you can search for the final two lines of the trackback after removing all path fragments specific to your installation, this is searching for:

line 2029, in _complete completions = self._jedi_matches IPython/core/completer.py, line 1373, in _jedi_matches interpreter = jedi.Interpreter( jedi/api/init.py, line 725, in init super().init(code, environment=environment, TypeError: init() got an unexpected keyword argument 'column'

从今天开始,这将在Google的前两个Google结果中为您提供有关GitHub的相关问题.

This will give you the relevant issues on GitHub in the first two Google result as for today.

这篇关于在原子中使用氢的巨型IPKernelApp错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 10:31