python - AttributeError:模块“IPython.core”没有属性“shadowns”
问题描述
我正在运行这些行
import dill
dill.load_session("session2.pkl")
并得到错误 AttributeError: module 'IPython.core' has no attribute 'shadowns'
。我已将此会话保存在 Google Colab Notebooks 上。我怎样才能摆脱错误?
解决方案
我使用了简单的解决方法:
import IPython
IPython.core.shadowns = 1
对于像google
or这样的一些额外的包google.colab
,我使用了
%%bash
mkdir google/colab
touch google/colab/__init__.py
推荐阅读
- here-api - HERE SDK 中的流量路由
- html - MDL - 如何从输入中删除下划线
- python - 在 tkinter 窗口中显示打开文件的位置名称
- javascript - 下一张幻灯片按钮
- python - 使用 Python 如何从 CI Jenkins 服务器中的 AWS 参数存储中获取数据(每晚运行我的测试)
- google-apps-script - Google App Script - Json 响应解析
- javascript - 压缩了一些代码,想知道我是否添加了任何意外的漏洞或问题:
- c - 何时在 C 函数中使用 const
- xamarin.ios - 更改 RootView 控制器 Xamarin IOS 应用程序
- c# - 服务程序中的 LocalApplicationData 与控制台应用程序中的不同