I am able to connect two ipython console session to one kernel by:
$ 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.
And accordingly I can substitute the <app> by console again
$ ipython console --existing kernel-43204.json
However, I want to share my kernel with ipython notebook so I can visualize my data. I tried and failed with:
$ ipython notebook --existing kernel-43204.json
[C 13:35:01.025 NotebookApp] Unrecognized flag: '--existing'
Any suggestion how I can work and switch between ipython console and ipython notebook?