running multiple cells in jupyter notebook simultaneously

梦想与她 提交于 2021-02-07 06:23:05

问题


My question is similar to the one asked here. I have a cell in a jupyter notebook that runs for a long time. I want to run the next cell (variables not dependent on the previous cell) along with the previous one. I am not asking for multiprocessing or sharing jobs across CPUs. I want to run the contents of multiple cells run simultaneously. By default, they run sequentially.

It is like running two different notebooks but for the sake of continuity and shared objects, variables I want to run in multiple cells in the same notebook.


回答1:


The question has been answered in another post. ipyparallel (formerly IPython parallel) can be used to spawn multiple IPython kernel. Documentation

Is there a way to run multiple cells simultaneously in IPython notebook?



来源:https://stackoverflow.com/questions/45441323/running-multiple-cells-in-jupyter-notebook-simultaneously

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!