问题
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