Ipython: 绝地0.16自动完成的弃用警告

创建于 2020-03-26  ·  9评论  ·  资料来源: ipython/ipython

使用jedi 0.16时:

In [1]: import warnings                                                                                                                                   
In [2]: warnings.filters.remove(('ignore', None, DeprecationWarning, None, 0))                                                                            
In [3]: a=0                                                                                                                                               
In [4]: a.<TAB>

引发弃用警告:

/usr/lib/python3.8/site-packages/jedi/cache.py:111: DeprecationWarning: Deprecated since version 0.16.0. Use get_signatures()[...].params
  result = method(self, *args, **kwargs)
good first issue help wanted

最有用的评论

我在最新版本7.14.0中看到此问题。 同时,在下一个版本之前,希望解决此问题的任何人都可以直接在github上安装。 现在,它对我来说非常完美。

pip install git+https://github.com/ipython/ipython.git

所有9条评论

您可以指导我解决问题吗? @ antonio-rojas @卡罗

QtConsole:

\lib\site-packages\jedi\cache.py:111: DeprecationWarning: Deprecated since version 0.16.0. Use get_signatures()[...].params
  result = method(self, *args, **kwargs)

\lib\site-packages\ipykernel\ipkernel.py:454: DeprecationWarning: `input_splitter` is deprecated since IPython 7.0, prefer `input_transformer_manager`.
  status, indent_spaces = self.shell.input_splitter.check_complete(code)

https://github.com/ipython/ipykernel/issues/375

In[1]: import mlflow as m
\lib\site-packages\ipykernel\ipkernel.py:454: DeprecationWarning: `input_splitter` is deprecated since IPython 7.0, prefer `input_transformer_manager`.
  status, indent_spaces = self.shell.input_splitter.check_complete(code)

In[2]: m.set_tracking_uri("http://127.0.0.1:5000/")

大家好,这个问题的状态是什么? 有有人在工作吗?

好吧,我正在尝试修复它,但仅供参考,我在此问题上遇到了一些

糟糕,这已经被看到: https :

由#12227固定?

否,由1e79c167a41d13eee673b8bb54798cb2f920f957修复

我在最新版本7.14.0中看到此问题。 同时,在下一个版本之前,希望解决此问题的任何人都可以直接在github上安装。 现在,它对我来说非常完美。

pip install git+https://github.com/ipython/ipython.git

我也可以在7.19.0版中看到这一点

此页面是否有帮助?
0 / 5 - 0 等级