群集不会从jupyter选项卡启动

2024-05-13 09:08:50 发布

您现在位置:Python中文网/ 问答频道 /正文

我可以用ipcluster start -n number启动集群,但当我试图从jupyter cluster选项卡启动时,它似乎不起作用:

在终端(使用jupyter-notebook命令输出),我只看到:

[I 12:15:38.008 NotebookApp] Using existing profile dir: u'/home/me/.ipython/profile_default'

以及

from ipyparallel import Client rc = Client() rc.ids

返回空列表。在

我想从jupyter选项卡启动集群。谢谢。在


Tags: 命令client终端number集群jupyterprofilestart
1条回答
网友
1楼 · 发布于 2024-05-13 09:08:50

我也遇到过类似的问题,通过从开发版本安装ipyparallel来解决这个问题:

$ git clone https://github.com/ipython/ipyparallel
$ cd ipyparallel
$ pip install -U .

然后启用笔记本扩展:

^{pr2}$

我使用 user参数,因为我在一个没有sudo权限的虚拟环境中工作。我还使用pip确保我有最新的jupyter笔记本版本。pip install -U jupyter和{}。在

我目前的版本是:

  • Python 2.7.10
  • jupyter 4.4.0版
  • jupyter笔记本5.4.1
  • ipyparallel 6.2.0.dev

相关问题 更多 >