【发布时间】:2015-07-13 11:40:21
【问题描述】:
我可以通过以下方式将两个ipython console 会话连接到一个内核:
$ ipython console
In [1]: %connect_info
{
... Content of JSON with info for connecting ...
}
Paste the above JSON into a file, and connect with:
$> ipython <app> --existing <file>
or, if you are local, you can connect with just:
$> ipython <app> --existing kernel-43204.json
or even just:
$> ipython <app> --existing
if this is the most recent IPython session you have started.
因此我可以再次通过控制台替换<app>
$ ipython console --existing kernel-43204.json
但是,我想与 ipython notebook 共享我的内核,以便可视化我的数据。我尝试过但失败了:
$ ipython notebook --existing kernel-43204.json
[C 13:35:01.025 NotebookApp] Unrecognized flag: '--existing'
有什么建议可以在ipython console 和ipython notebook 之间切换吗?
【问题讨论】: