python-3.x - 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
?
我在对另一个线程的回复中注意到其他人遇到了这个确切的问题,但没有答案。提前致谢!
解决方案
推荐阅读
- vue.js - Nuxt 动态组件导入
- python - PyQt5 事件过滤器对象检测
- google-sheets - 是否有代码可以强制用户在单元格中输入特定格式?
- angular - Angular ngrx 8 选择器不返回任何值
- json - 如何在 AWS CLI SNS 消息中提供 JSON?
- amazon-web-services - Terraform aws_iam_role_policy 中的 JSON 语法错误
- javascript - 无法访问 JavaScript 中的任何库
- python - AWS Glue - 如何使用 BOTO3 更改 Glue 目录表中的列名?
- oracle - 使用 Oracle APEX 表单,是否可以根据下拉菜单中的其他选择使其他字段变灰?
- azure - 是否有用于在测试或 CI 环境中运行的 docker 映像来代替 Azure 事件中心?