【发布时间】:2021-03-26 22:05:08
【问题描述】:
我正在尝试同时运行 2 个 jupyter notebook 单元。
首先,我定义
import time
list1 = ["a"]
然后我想运行以下
go = True
while go==True:
time.sleep(1)
print(list1)
当上面的单元格运行时,我希望能够更新 list1 并在上面的单元格中查看更新后的输出,即运行另一个单元格
list1.append("b")
我已经研究过使用 ipyparallel 包并尝试使用这个答案和文档但没有成功 Is there a way to run multiple cells simultaneously in IPython notebook?
有人知道怎么做吗?
谢谢
【问题讨论】:
标签: python parallel-processing jupyter-notebook