I think you have to use ipython qtconsole --kernel ...<div><br><br>Le lundi 7 juillet 2014, Thomas Wiecki <<a href="mailto:thomas.wiecki@gmail.com">thomas.wiecki@gmail.com</a>> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Thanks Fernando.<br><br>I launch the kernel, but once I connect with the console this happens:<br><br>>>python echokernel.py <br>main<br>NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.<br>
<br>To exit, you will have to explicitly quit this process, by either sending<br>"quit" from a client, or using Ctrl-\ in UNIX-like environments.<br><br>To read more about this, see <a href="https://github.com/ipython/ipython/issues/2049" target="_blank">https://github.com/ipython/ipython/issues/2049</a><br>
<br><br>To connect another client to this kernel, use:<br> --existing kernel-22662.json<br>[IPKernelApp] ERROR | Invalid Message<br>Traceback (most recent call last):<br> File "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py", line 160, in dispatch_shell<br>
msg = self.session.unserialize(msg, content=True, copy=False)<br> File "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/session.py", line 822, in unserialize<br> raise ValueError("Invalid Signature: %r" % signature)<br>
ValueError: Invalid Signature: '5a5e527fdb5c50a2fbeb2d6cdecb974ce32531c535c6adf8dc6ed124df112fb4'<br>[IPKernelApp] ERROR | Invalid Message<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 7:02 PM, Fernando Perez <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','fperez.net@gmail.com');" target="_blank">fperez.net@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Try it first using a terminal client:<div><br></div><div><br></div><div>ipython console --existing ... .json.</div>
<div><br></div><div>Once you know that works, move over to the notebook. Less moving parts....</div>
<div><br></div><div>f</div></div><div class="gmail_extra"><div><div><br><br><div class="gmail_quote">On Mon, Jul 7, 2014 at 11:57 AM, Thomas Wiecki <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','thomas.wiecki@gmail.com');" target="_blank">thomas.wiecki@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">OK, that seems to work. I copy&pasted the EchoKernel example but it seems to stall (cell id turns to * and stays that way). Any way I can debug this? print's don't seem to get shown.<br>
</div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Mon, Jul 7, 2014 at 6:48 PM, Thomas Kluyver <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','takowl@gmail.com');" target="_blank">takowl@gmail.com</a>></span> wrote:<br>
</div></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>On 7 July 2014 11:41, Thomas Wiecki <span dir="ltr"><<a href="javascript:_e(%7B%7D,'cvml','thomas.wiecki@gmail.com');" target="_blank">thomas.wiecki@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Once I have the kernel.json, how can I launch an IPython NB with this new kernel? Couldn't find a way to link to the json file.</blockquote>
<div><br></div></div><div>That part's not implemented yet - once it is, there will be a dropdown menu in the notebook UI to select kernels. For now, you need to start the notebook server with a long command like this:<br>
<br>
<pre lang="Shell"><code>ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']"</code></pre> </div></div></div></div>
<br></div></div><div>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','IPython-dev@scipy.org');" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></div></blockquote></div><div><br><br clear="all"><br>-- <br><div dir="ltr">Thomas Wiecki<div>PhD candidate, Brown University<div></div><div>Quantitative Researcher, Quantopian Inc, Boston<br></div></div></div>
</div></div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','IPython-dev@scipy.org');" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br></div></div>Fernando Perez (@fperez_org; <a href="http://fperez.org" target="_blank">http://fperez.org</a>)<br>fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)<br>
fernando.perez-at-berkeley: contact me here for any direct mail<br>
</div>
<br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','IPython-dev@scipy.org');" target="_blank">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Thomas Wiecki<div>PhD candidate, Brown University<div></div><div>Quantitative Researcher, Quantopian Inc, Boston<br></div></div></div>
</div>
</blockquote></div>