首页 > 解决方案 > ShimWarning 运行 `help("modules")`

问题描述

在 python 3.8 中运行help("modules")时(在 Jupyter Notebook 内部和常规 python 终端中),会出现以下警告:

/opt/conda/lib/python3.8/site-packages/IPython/kernel/__init__.py:12: 
ShimWarning: The `IPython.kernel` package has been deprecated since IPython 4.0.
You should import from ipykernel or jupyter_client instead.
  
warn("The `IPython.kernel` package has been deprecated since IPython 4.0.")

为了解决这个警告,我需要更新一些包或库吗?是什么意思import from ipykernel or jupyter_client

我在对另一个线程的回复中注意到其他人遇到了这个确切的问题,但没有答案。提前致谢!

标签: python-3.xjupyter-notebookipython

解决方案


推荐阅读