jupyter notebook 使用%%time后导致其他单元(cell)中出现变量未定义的问题
问题描述Jupyter notebook中使用%%time对一个单元(cell)运行过后,cell中的变量会被释放,以至于在后面的cell中用到该单元中的变量会显示未定义,如下图所示:原因分析ipython 7.4中的bug,在官方GitHub仓库中有人反馈过这个bug,这个bug后来在ipython 7.5中被修复了。issue地址1:https://github.com/ipython/ipykernel/issues/401issue地址2:https://github.com/ipyth
原创
2021-04-08 19:27:09 ·
1165 阅读 ·
0 评论