[IPython-User] Connecting to existing terminal console from qtconsole

MinRK benjaminrk@gmail....
Thu Jun 6 13:35:31 CDT 2013


They are structured a little differently, you can get the same example from
0.13.2 on GitHub as well:

https://github.com/ipython/ipython/blob/rel-0.13.2/docs/examples/lib/internal_ipkernel.py




On Thu, Jun 6, 2013 at 10:46 AM, Vladan Divljak <ghostility@gmail.com>wrote:

> Thanks Thomas
>
> I'm afraid code example is valid for bleeding edge IPython. In 0.13.2
> those modules are either structured differently or non-existent (like
> `kernel\zmq\embed.py` for example).
>
>
>
> On Thu, Jun 6, 2013 at 6:45 PM, Thomas Kluyver <takowl@gmail.com> wrote:
>
>> On 6 June 2013 17:15, Vladan Divljak <ghostility@gmail.com> wrote:
>>
>>> I made trivial module which dumps me in IPython terminal console on
>>> script exception, and I'm not sure how to connect to this console from
>>> qtconsole.
>>>
>>> Code that bring me in terminal IPython console is like this:
>>>
>>>     from IPython.frontend.terminal.embed import InteractiveShellEmbed
>>>     InteractiveShellEmbed()(stack_depth=2)
>>>
>>> I tried to connect with this command `ipython qtconsole --existing` in
>>> which case IPython qtconsole never reaches to prompt.
>>
>>
>> The plain terminal client doesn't start a kernel, so it won't accept
>> connections. You can, however, start an IPython kernel in your application,
>> and then connect clients to that. This example might be useful:
>>
>> https://github.com/ipython/ipython/blob/master/examples/lib/internal_ipkernel.py
>>
>> Thomas
>>
>> _______________________________________________
>> IPython-User mailing list
>> IPython-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/ipython-user
>>
>>
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130606/f4977224/attachment.html 


More information about the IPython-User mailing list