<div>Fernando:</div><div><br></div>That is really great! Now I have really no excuse to run embedded 0.9.1 anymore :)<div><br></div><div>I have a one followup question: how to pass my namespace to the kernel - the examples seem to do the opposite.</div>
<div><br></div><div>Piotr<br><br><div class="gmail_quote">On Fri, Aug 5, 2011 at 1:00 PM, <span dir="ltr"><<a href="mailto:ipython-user-request@scipy.org">ipython-user-request@scipy.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Send IPython-User mailing list submissions to<br>
<a href="mailto:ipython-user@scipy.org">ipython-user@scipy.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:ipython-user-request@scipy.org">ipython-user-request@scipy.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:ipython-user-owner@scipy.org">ipython-user-owner@scipy.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of IPython-User digest..."<br>
<br>Today's Topics:<br>
<br>
1. Putting a kernel inside a GUI (WX or Qt) application so you<br>
can run external Qt consoles against it. (Fernando Perez)<br>
2. Re: Question about vim-ipython (Jorge Scandaliaris)<br>
3. Re: connecting to remote kernel in 0.11 (Toby Burnett)<br>
4. hsplit or vsplit? (Klonuo Umom)<br>
5. Re: hsplit or vsplit? (Thomas Kluyver)<br>
6. Re: hsplit or vsplit? (Paul Ivanov)<br>
<br><br>---------- Forwarded message ----------<br>From: Fernando Perez <<a href="mailto:fperez.net@gmail.com">fperez.net@gmail.com</a>><br>To: IPython User list <<a href="mailto:ipython-user@scipy.org">ipython-user@scipy.org</a>><br>
Date: Fri, 5 Aug 2011 00:20:02 -0700<br>Subject: [IPython-User] Putting a kernel inside a GUI (WX or Qt) application so you can run external Qt consoles against it.<br>Hi all,<br>
<br>
[ forgot to CC the user list, where people who aren't on the dev list<br>
may care about this... ]<br>
<br>
we knew this was in principle possible given the new architecture, but<br>
in working with a colleague today I had to actually implement it, so<br>
I've committed these as examples (they only need 0.11 to run, so you<br>
can just copy these files if you want to play with them, or pull from<br>
master):<br>
<br>
<a href="https://github.com/ipython/ipython/blob/master/docs/examples/lib/ipkernel_qtapp.py" target="_blank">https://github.com/ipython/ipython/blob/master/docs/examples/lib/ipkernel_qtapp.py</a><br>
<a href="https://github.com/ipython/ipython/blob/master/docs/examples/lib/ipkernel_wxapp.py" target="_blank">https://github.com/ipython/ipython/blob/master/docs/examples/lib/ipkernel_wxapp.py</a><br>
<br>
Those two both use the same common machinery:<br>
<br>
<a href="https://github.com/ipython/ipython/blob/master/docs/examples/lib/internal_ipkernel.py" target="_blank">https://github.com/ipython/ipython/blob/master/docs/examples/lib/internal_ipkernel.py</a><br>
<br>
The idea is that you can have a full IPython kernel embedded in any<br>
GUI app (in this case, shown with either WX or Qt), and the app can<br>
then fire up a Qt console (or you can attach one externally). The GUI<br>
app is modifying variables (the Count++ button) and dumping the user<br>
namespace to the console via buttons, while the Qt console can plot<br>
variables, run code, etc, that's in the namespace dict.<br>
<br>
These examples show that it actually takes very little code, and that<br>
this extra code is fairly generic (I used the same code for both the<br>
Qt and the WX examples). In a real application it would be structured<br>
slightly differently, but the ideas should be clear from this simple<br>
example.<br>
<br>
I hope this is useful, since this is something that I've been asked<br>
*many* times over the years.<br>
<br>
Cheers,<br>
<br>
f<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Jorge Scandaliaris <<a href="mailto:jorgesmbox-ml@yahoo.es">jorgesmbox-ml@yahoo.es</a>><br>To: <a href="mailto:ipython-user@scipy.net">ipython-user@scipy.net</a><br>
Date: Fri, 5 Aug 2011 12:59:01 +0000 (UTC)<br>Subject: Re: [IPython-User] Question about vim-ipython<br>Paul Ivanov <pivanov314 <at> <a href="http://gmail.com" target="_blank">gmail.com</a>> writes:<br>
<br>
> Hi Jorge,<br>
><br>
> glad you like it, the IPython guys certainly made all of this<br>
> awesomeness possible, so big kudos to them!<br>
><br>
> Are you running within screen by chance?<br>
><br>
> I have this line in my .bashrc<br>
><br>
> # <a href="http://munkymorgy.blogspot.com/2008/07/screen-ctrl-s-bug.html" target="_blank">http://munkymorgy.blogspot.com/2008/07/screen-ctrl-s-bug.html</a><br>
> stty stop undef #To unmap ctrl-s<br>
><br>
<br>
You were spot on, I am using screen and your suggestion solves the problem.<br>
<br>
> also, does it work in gvim?<br>
<br>
I don't usually use gvim, but I did a quick test and it seems to work also there.<br>
<br>
I still haven't played with all the features, but from now on I'll use it<br>
regularly so I'll report back on any issues I find.<br>
<br>
Regards,<br>
<br>
Jorges<br>
<br>
<br>
<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Toby Burnett <<a href="mailto:tburnett@uw.edu">tburnett@uw.edu</a>><br>To: "<a href="mailto:ipython-user@scipy.org">ipython-user@scipy.org</a>" <<a href="mailto:ipython-user@scipy.org">ipython-user@scipy.org</a>><br>
Date: Fri, 5 Aug 2011 14:23:48 +0000<br>Subject: Re: [IPython-User] connecting to remote kernel in 0.11<br>
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">I’m very interested in how to do this as well, although I’m not so concerned about security. A slight variation, I’d like to connect to a server on a Linux machine from a Windows host, I presume not an issue. I’m wondering about how plots
would be treated, I suspect that the kernel would not be able to create windows on a remote machine, but one could use the display function in a client to embed plots?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">On the subject of this nice new capability, I’m scratching my head for use cases to justify having multiple clients. So far I’ve thought of being able to create a compact notebook-like log on a secondary session, with all the mistakes and
wrong turns in the primary one. <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">--Toby Burnett<u></u><u></u></p>
</div>
</div>
<br><br>---------- Forwarded message ----------<br>From: Klonuo Umom <<a href="mailto:klonuo@gmail.com">klonuo@gmail.com</a>><br>To: <a href="mailto:ipython-user@scipy.org">ipython-user@scipy.org</a><br>Date: Fri, 5 Aug 2011 16:55:43 +0200<br>
Subject: [IPython-User] hsplit or vsplit?<br>When paging in qtconsole is set to hsplit it renders like this:<br>
<br>
| Console | Pager |<br>
<br>
and when set to vsplit, like this:<br>
<br>
----<br>
Console<br>
----<br>
Pager<br>
----<br>
<br>
I don't understand whats horizontal in hsplit (it has vertical<br>
splitter so it splits screen vertically) and what's vertical in<br>
vsplit? If I try harder I may notice that it may mean split in<br>
horizontal columns and vertical rows, but seems strange. It could be<br>
just in my mind or minor syntactic issue<br>
<br>
<br><br>---------- Forwarded message ----------<br>From: Thomas Kluyver <<a href="mailto:takowl@gmail.com">takowl@gmail.com</a>><br>To: Klonuo Umom <<a href="mailto:klonuo@gmail.com">klonuo@gmail.com</a>><br>
Date: Fri, 5 Aug 2011 16:06:10 +0100<br>Subject: Re: [IPython-User] hsplit or vsplit?<br><div class="gmail_quote">On 5 August 2011 15:55, Klonuo Umom <span dir="ltr"><<a href="mailto:klonuo@gmail.com" target="_blank">klonuo@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>When paging in qtconsole is set to hsplit it renders like this:<br>
<br>
| Console | Pager |<br>
<br>
and when set to vsplit, like this:<br>
<br>
----<br>
Console<br>
----<br>
Pager<br>
----<br>
<br>
I don't understand whats horizontal in hsplit (it has vertical<br>
splitter so it splits screen vertically) and what's vertical in<br>
vsplit? If I try harder I may notice that it may mean split in<br>
horizontal columns and vertical rows, but seems strange. It could be<br>
just in my mind or minor syntactic issue</div></blockquote><div><br>That's the way I'd expect them (and I wasn't involved with designing that). With hsplit, the splitter bar itself is vertical, but it is (to my mind) splitting the contents of the window horizontally.<br>
<br>Thomas<br></div></div><br>
<br><br>---------- Forwarded message ----------<br>From: Paul Ivanov <<a href="mailto:pivanov314@gmail.com">pivanov314@gmail.com</a>><br>To: <a href="mailto:ipython-user@scipy.org">ipython-user@scipy.org</a><br>Date: Fri, 5 Aug 2011 08:24:34 -0700<br>
Subject: Re: [IPython-User] hsplit or vsplit?<br>> On 5 August 2011 15:55, Klonuo Umom <<a href="mailto:klonuo@gmail.com">klonuo@gmail.com</a>> wrote:<br>
> > When paging in qtconsole is set to hsplit it renders like this:<br>
> ><br>
> > | Console | Pager |<br>
> ><br>
> > and when set to vsplit, like this:<br>
> ><br>
> > ----<br>
> > Console<br>
> > ----<br>
> > Pager<br>
> > ----<br>
> ><br>
> > I don't understand whats horizontal in hsplit (it has vertical<br>
> > splitter so it splits screen vertically) and what's vertical in<br>
> > vsplit? If I try harder I may notice that it may mean split in<br>
> > horizontal columns and vertical rows, but seems strange. It could be<br>
> > just in my mind or minor syntactic issue<br>
<br>
I'm with Klonuo on this one, the implementation was exactly<br>
counter to my beliefs (read on)<br>
<br>
Thomas Kluyver, on 2011-08-05 16:06, wrote:<br>
> That's the way I'd expect them (and I wasn't involved with designing that).<br>
> With hsplit, the splitter bar itself is vertical, but it is (to my mind)<br>
> splitting the contents of the window horizontally.<br>
<br>
vi users all disagree with you - both vim and nvi have :vsplit as<br>
| Console | Pager |<br>
<br>
:)<br>
--<br>
Paul Ivanov<br>
314 address only used for lists, off-list direct email at:<br>
<a href="http://pirsquared.org" target="_blank">http://pirsquared.org</a> | GPG/PGP key id: 0x0F3E28F7<br>
<br>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.10 (GNU/Linux)<br>
<br>
iEYEARECAAYFAk48CywACgkQe+cmRQ8+KPdZDQCfdgXPsTFnYcKN2KzVkC2EXQ9q<br>
loEAn1HuekbBF299yGNe0rLrk47KeS4B<br>
=9+6Y<br>
-----END PGP SIGNATURE-----<br>
<br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> <br>Piotr Adam Zolnierczuk<br>e-mail: <a href="mailto:piotr@zolnierczuk.net">piotr@zolnierczuk.net</a><br>www: <a href="http://www.zolnierczuk.net">http://www.zolnierczuk.net</a><br>
_____________________________________<br>written on recycled electrons<br><br><br>
</div>