[IPython-dev] Static code analysis of IPython Notebook cell
Thomas Wiecki
thomas.wiecki at gmail.com
Tue Jul 8 05:22:46 EDT 2014
The IPython console works well now. However, using the NB client and
sending:
self.send_response(self.iopub_socket, 'stream', stream_content)
and then returning:
return {'status': 'error',
'ename': 'foo',
'evalue': 'bar',
'traceback': messages,
'execution_count': self.execution_count,
}
Do not display anything in the NB (they do both show up in the console).
The cell does not get executed so I think it's executing the correct path.
Any ideas?
Also, since I want to use a Python kernel I'm inheriting from
IPythonKernel. Might that be the problem? I suspect there would be a
NotebookKernel (that also supports the magics, which currently give me a
syntaxi error) that I can't find.
On Tue, Jul 8, 2014 at 7:47 AM, Thomas Wiecki <thomas.wiecki at gmail.com>
wrote:
> Thanks, that works.
>
>
> On Tue, Jul 8, 2014 at 3:46 AM, Thomas Kluyver <takowl at gmail.com> wrote:
>
>> Sorry, I gave an incomplete command in my previous link. kernel_cmd
>> should be the same sequence of arguments you wrote in the kernel.json file,
>> including the all-important {connection_file} parameter, which is replaced
>> with the path to the connection file:
>>
>> ipython notebook --KernelManager.kernel_cmd="['python', '-m', 'my_module', '-f', '{connection_file}']"
>>
>>
>>
>>
>> On 7 July 2014 15:36, Thomas Wiecki <thomas.wiecki at gmail.com> wrote:
>>
>>> Sounds good -- let me know. Thanks for the help.
>>>
>>>
>>> On Mon, Jul 7, 2014 at 10:32 PM, Fernando Perez <fperez.net at gmail.com>
>>> wrote:
>>>
>>>>
>>>> On Mon, Jul 7, 2014 at 3:26 PM, Thomas Wiecki <thomas.wiecki at gmail.com>
>>>> wrote:
>>>>
>>>>> OK, after the fix the echo kernel works in console but the NB still
>>>>> stalls with [*]. Any pointers?
>>>>
>>>>
>>>> I can replicate the problem with the nb, but at least now the text
>>>> console `ipython console` and the qtconsole do work.
>>>>
>>>> Perhaps you can move forward with either of those, while we sort out
>>>> what's going on with the nb...
>>>>
>>>> f
>>>>
>>>>
>>>> --
>>>> 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
>>>> 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
>>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>>
>>>
>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-dev
>>
>>
>
>
> --
> Thomas Wiecki
> PhD candidate, Brown University
> Quantitative Researcher, Quantopian Inc, Boston
>
--
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/20140708/900db5f9/attachment.html>
More information about the IPython-dev
mailing list