问题描述
最近在使用 Jupyter notebook 时,突然发现 Tab 不能补齐(提示)代码。尝试安装 依然无效。 后来意识到并非 Jupyter notebook的问题,而在于 Ipython 。
Debug
查看了 Ipython 的版本为 7.19.0。 Ipython 中尝试使用Tab补齐时,可能会出现 Exception name 'sys' is not defined
报错。
第一种 debug 方法是将 Ipython 版本降至 7.1.0 (或其它早期版本)。然而,这种方法可能在后续的其它代码如 import module 时出现新的bug。
第二种 dubug 方法是执行下面这段代码 参考:
pip install -U jedi==0.17.2 parso==0.7.1