问题描述
我的问题类似于被问到的问题此处.我的Jupyter笔记本电脑中有一个牢房,可以运行很长时间.我想运行下一个单元格(变量不依赖于上一个单元格)以及上一个单元格.我不是要在CPU上进行多处理或共享作业.我要同时运行多个单元格的内容.默认情况下,它们按顺序运行.
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.
推荐答案
问题已在另一篇文章中得到解答. ipyparallel(以前为IPython parallel)可用于产生多个IPython内核. 文档
The question has been answered in another post. ipyparallel (formerly IPython parallel) can be used to spawn multiple IPython kernel. Documentation
有没有办法在IPython Notebook中同时运行多个单元格?
这篇关于同时在jupyter Notebook中运行多个单元的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!