我需要允许远程连接到ipython内核。我知道它将使用kernel ... pid ... json连接文件,其中指定了诸如shell_port,iopub_port,stdin_port,control_port和hb_port之类的端口。 在每次内核启动时,都会生成一个新的json文件。
示例文件:
[client] $ cat kernel-1234.json
{
"stdin_port": 62719,
"ip": "127.0.0.1",
"control_port": 58473,
"hb_port": 59591,
"signature_scheme": "hmac-sha256",
"key": "6a282934-9cc9-4e9c-9f07-2acf1b4964cb",
"shell_port": 55763,
"transport": "tcp",
"iopub_port": 49958
}
您知道它使用的端口范围吗?我必须创建防火墙规则以为所有用户启用连接,以允许他们将spyder连接到远程ipython内核。从文件看来,范围25000-65535应该可以工作,但是范围太广了……我在文档中没有找到任何内容。
有人找到了这个信息吗?