ipython / ipython/ipykernel

jupyter notebook: Unrecognized flag: '--existing'

未關閉
#453 0 則留言 2 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
734
分支
412
平均合併
1 天 5 小時
30 天內合併 PR
8

描述

Hello.

This is a copy of an [issue #4373 in jupyter notebook](https://github.com/jupyter/notebook/issues/4373). It was suggested that the problem might be not with the notebook, but with the jupyter kernel.

The magic `%connect_info` mentioned in the [manual](https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Connecting%20with%20the%20Qt%20Console.html) provides with the info of the kernel following with a few usage suggestions:
```
{
"shell_port": 53512,
"iopub_port": 53513,
"stdin_port": 53514,
"control_port": 53515,
"hb_port": 53516,
"ip": "127.0.0.1",
"key": "0a75d930-a42c67004b5ae820150b073f",
"transport": "tcp",
"signature_scheme": "hmac-sha256",
"kernel_name": ""
}

Paste the above JSON into a file, and connect with:
$> jupyter --existing
or, if you are local, you can connect with just:
$> jupyter --existing kernel-ac8f42fc-4851-4367-93cc-24251f01abbc.json
or even just:
$> jupyter --existing
if this is the most recent Jupyter kernel you have started.
```
Unfortunately, running `jupyter notebook --existing ...` raises an error
```
[C 21:59:25.219 NotebookApp] Bad config encountered during initialization:
[C 21:59:25.219 NotebookApp] Unrecognized flag: '--existing'
```

Versions:
```
jupyter-client 5.3.1
jupyter-contrib-core 0.3.3
jupyter-core 4.5.0
notebook 5.7.2
```

Best regards
Vladimir

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。