[IPython-dev] Static code analysis of IPython Notebook cell

Cyrille Rossant cyrille.rossant at gmail.com
Mon Jul 7 14:34:41 EDT 2014


 I think you have to use ipython qtconsole --kernel ...


Le lundi 7 juillet 2014, Thomas Wiecki <thomas.wiecki at gmail.com> a écrit :

> Thanks Fernando.
>
> I launch the kernel, but once I connect with the console this happens:
>
> >>python echokernel.py
> main
> NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.
>
> To exit, you will have to explicitly quit this process, by either sending
> "quit" from a client, or using Ctrl-\ in UNIX-like environments.
>
> To read more about this, see
> https://github.com/ipython/ipython/issues/2049
>
>
> To connect another client to this kernel, use:
>     --existing kernel-22662.json
> [IPKernelApp] ERROR | Invalid Message
> Traceback (most recent call last):
>   File
> "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/kernelbase.py",
> line 160, in dispatch_shell
>     msg = self.session.unserialize(msg, content=True, copy=False)
>   File
> "/home/wiecki/envs/zipline_ipydev/lib/python2.7/site-packages/IPython/kernel/zmq/session.py",
> line 822, in unserialize
>     raise ValueError("Invalid Signature: %r" % signature)
> ValueError: Invalid Signature:
> '5a5e527fdb5c50a2fbeb2d6cdecb974ce32531c535c6adf8dc6ed124df112fb4'
> [IPKernelApp] ERROR | Invalid Message
>
>
> On Mon, Jul 7, 2014 at 7:02 PM, Fernando Perez <fperez.net at gmail.com
> <javascript:_e(%7B%7D,'cvml','fperez.net at gmail.com');>> wrote:
>
>> Try it first using a terminal client:
>>
>>
>> ipython console --existing ... .json.
>>
>> Once you know that works, move over to the notebook. Less moving parts....
>>
>> f
>>
>>
>> On Mon, Jul 7, 2014 at 11:57 AM, Thomas Wiecki <thomas.wiecki at gmail.com
>> <javascript:_e(%7B%7D,'cvml','thomas.wiecki at gmail.com');>> wrote:
>>
>>> 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.
>>>
>>>
>>> On Mon, Jul 7, 2014 at 6:48 PM, Thomas Kluyver <takowl at gmail.com
>>> <javascript:_e(%7B%7D,'cvml','takowl at gmail.com');>> wrote:
>>>
>>>> On 7 July 2014 11:41, Thomas Wiecki <thomas.wiecki at gmail.com
>>>> <javascript:_e(%7B%7D,'cvml','thomas.wiecki at gmail.com');>> wrote:
>>>>
>>>>> 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.
>>>>
>>>>
>>>> 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:
>>>>
>>>> ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module']"
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> IPython-dev mailing list
>>>> IPython-dev at scipy.org
>>>> <javascript:_e(%7B%7D,'cvml','IPython-dev at scipy.org');>
>>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Thomas Wiecki
>>> PhD candidate, Brown University
>>> Quantitative Researcher, Quantopian Inc, Boston
>>>
>>> _______________________________________________
>>> IPython-dev mailing list
>>> IPython-dev at scipy.org
>>> <javascript:_e(%7B%7D,'cvml','IPython-dev at scipy.org');>
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>
>>
>> --
>> Fernando Perez (@fperez_org; http://fperez.org)
>> fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
>> fernando.perez-at-berkeley: contact me here for any direct mail
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> <javascript:_e(%7B%7D,'cvml','IPython-dev at scipy.org');>
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
>
> --
> Thomas Wiecki
> PhD candidate, Brown University
> Quantitative Researcher, Quantopian Inc, Boston
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20140707/7be2505b/attachment.html>


More information about the IPython-dev mailing list