我正在运行这些行
import dill
dill.load_session("session2.pkl")
,并收到错误AttributeError: module 'IPython.core' has no attribute 'shadowns'
。
我已将此会话保存在Google colab笔记本上。如何摆脱错误?
我使用了简单的解决方法:
import IPython
IPython.core.shadowns = 1
对于一些缺少的额外包,例如 google
或 google.colab
,我使用了
%%bash
mkdir google/colab
touch google/colab/__init__.py