[IPython-User] IPython-User Digest, Vol 114, Issue 11

Ming Li lijianting84@gmail....
Thu Apr 11 22:02:46 CDT 2013


2013/4/9 <ipython-user-request@scipy.org>

> Send IPython-User mailing list submissions to
>         ipython-user@scipy.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://mail.scipy.org/mailman/listinfo/ipython-user
> or, via email, send a message with subject or body 'help' to
>         ipython-user-request@scipy.org
>
> You can reach the person managing the list at
>         ipython-user-owner@scipy.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of IPython-User digest..."
>
>
> Today's Topics:
>
>    1. Re: Set initial window size to IPython Qt console (klo uo)
>    2. Re: Set initial window size to IPython Qt console (klo uo)
>    3. Re: Set initial window size to IPython Qt console
>       (Matthias BUSSONNIER)
>    4. Re: %sql magic released (Alan)
>    5. Re: %sql magic released (Matthias BUSSONNIER)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 9 Apr 2013 15:40:36 +0200
> From: klo uo <klonuo@gmail.com>
> Subject: Re: [IPython-User] Set initial window size to IPython Qt
>         console
> To: "Discussions about using IPython. http://ipython.org"
>         <ipython-user@scipy.org>
> Message-ID:
>         <CAA-8Ld-cn8LJ24+RUOexCvGC8V3+gE6aTv03eoC30A=
> 5daePHA@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Tue, Apr 9, 2013 at 3:14 PM, Matthias BUSSONNIER wrote:
>
> >
> > Le 9 avr. 2013 ? 15:08, klo uo a ?crit :
> >
> > On Tue, Apr 9, 2013 at 2:24 PM, Matthias BUSSONNIER wrote:
> >
> >>
> >> I would say no.
> >>
> >
> > Strange. I get 1200x400 screen every time I start qt console, and I
> > thought I must have set it wrong somewhere then leave it for later, until
> > today I started searching in configuration files and couldn't find such
> > setting.
> >
> >
> > Weird you got something that big. That might be qt specific ...
> >
> >
> > IPython/frontend/qt/console/console_widget.py:457
> >> Do I hear a PR ?
> >>
> >
> > Thanks!
> > I'll hardcode it, as I know nothing about Qt to make it scale with
> > confidence on different platforms, thus PR withdraw from me (if it was
> > intended to me in the first place ;))
> >
> >
> > Ah, sad, you can still do it later if you wish :-)
> >
> > Still tell us if it changes the size of the console correctly.
> >
>
> Hm... I don't know how to interpret your breakpoint
> "IPython/frontend/qt/console/console_widget.py:457", but issue seems to be
> sourced exactly there :)
>
> So I can either set my splitter preference to 'vsplit' or change `width *
> 2` to `width` on the line you referenced. It doesn't seem anything wrong
> with the code, as it potentially keeps space for help content, or?
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.scipy.org/pipermail/ipython-user/attachments/20130409/b3f3504f/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Tue, 9 Apr 2013 15:58:14 +0200
> From: klo uo <klonuo@gmail.com>
> Subject: Re: [IPython-User] Set initial window size to IPython Qt
>         console
> To: "Discussions about using IPython. http://ipython.org"
>         <ipython-user@scipy.org>
> Message-ID:
>         <CAA-8Ld_o1yk77tZpezWRZcNWHPaOd48o0z=
> mHeEyqLwtSQ7Gtw@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Yep, 'vsplit' is nicer then 'hsplit'. It is also consistent with
> Notebook... so that's my solution
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.scipy.org/pipermail/ipython-user/attachments/20130409/5f86d84f/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Tue, 9 Apr 2013 16:10:02 +0200
> From: Matthias BUSSONNIER <bussonniermatthias@gmail.com>
> Subject: Re: [IPython-User] Set initial window size to IPython Qt
>         console
> To: "Discussions about using IPython. http://ipython.org"
>         <ipython-user@scipy.org>
> Message-ID: <B806C9EE-1B40-475D-9895-CC4805236037@gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Le 9 avr. 2013 ? 15:40, klo uo a ?crit :
>
> > On Tue, Apr 9, 2013 at 3:14 PM, Matthias BUSSONNIER wrote:
> >
> > Le 9 avr. 2013 ? 15:08, klo uo a ?crit :
> >
> >> On Tue, Apr 9, 2013 at 2:24 PM, Matthias BUSSONNIER wrote:
> >>
> >> I would say no.
> >>
> >> Strange. I get 1200x400 screen every time I start qt console, and I
> thought I must have set it wrong somewhere then leave it for later, until
> today I started searching in configuration files and couldn't find such
> setting.
> >
> > Weird you got something that big. That might be qt specific ...
> >
> >>
> >> IPython/frontend/qt/console/console_widget.py:457
> >> Do I hear a PR ?
> >>
> >> Thanks!
> >> I'll hardcode it, as I know nothing about Qt to make it scale with
> confidence on different platforms, thus PR withdraw from me (if it was
> intended to me in the first place ;))
> >
> > Ah, sad, you can still do it later if you wish :-)
> >
> > Still tell us if it changes the size of the console correctly.
> >
> > Hm... I don't know how to interpret your breakpoint
> "IPython/frontend/qt/console/console_widget.py:457", but issue seems to be
> sourced exactly there :)
>
> we might have a shift in line number because i'm on dev. The all method
> (size_hint) should return (a hint of) the size you wish. Making 81 and 25
> Configurable (the class [1]) make them configurable (the adjective). See
> https://github.com/ipython/ipython/pull/3152 where I pinged you.
> --
> Matthias
>
>
> [1] actually, the class from which they are members derives from the
> Configurable class, and the members themselves are from the Integers class
> that derives from Traitlets.
>
>
> > So I can either set my splitter preference to 'vsplit' or change `width
> * 2` to `width` on the line you referenced. It doesn't seem anything wrong
> with the code, as it potentially keeps space for help content, or?
>
> >
> > _______________________________________________
> > 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/20130409/e25de3c4/attachment-0001.html
>
> ------------------------------
>
> Message: 4
> Date: Tue, 9 Apr 2013 15:24:50 +0100
> From: Alan <alanwilter@gmail.com>
> Subject: Re: [IPython-User] %sql magic released
> To: "Discussions about using IPython. http://ipython.org"
>         <ipython-user@scipy.org>
> Message-ID:
>         <CAEznbz=
> J3ZtFx0A3MG3WFsNz9aFNz-rjCKZg1vZLRq3vxrR7tA@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear Catherine,
>
> %sql magic is fantastic to say the minimum. I am testing with oracle db and
> it seems to work just fine. However,
>
> c.SqlMagic.autolimit = 1000
>
> seems to not be working for me. Is there a way of setting this limit in a
> already started ipython session?
>
> Thanks,
>
> Alan
>
>
> On 29 March 2013 18:45, Catherine Devlin <catherine.devlin@gmail.com>
> wrote:
>
> > https://pypi.python.org/pypi/ipython-sql
> >
> > Works with any database SQLAlchemy can see.  Renders query results as
> HTML
> > tables in the Notebook, or pretty text at the text console.
> >
> > Enjoy & give feedback!
> >
> > I suggest just installing with ``pip install ipython-sql``.  I haven't
> > been able to figure out how to use %load_ext successfully, since it's
> not a
> > single .py file, and using %load_ext for the whole .zip file from
> > https://github.com/catherinedevlin/ipython-sql/archive/master.zipdoesn't
> > seem to work... but if you know how to fix that, do tell...
> >
> > Thanks,
> > --
> > - Catherine
> > http://catherinedevlin.blogspot.com
> >
> > _______________________________________________
> > IPython-User mailing list
> > IPython-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-user
> >
> >
>
>
> --
> Alan Wilter SOUSA da SILVA, DSc
> Bioinformatician, UniProt - PANDA, EMBL-EBI
> CB10 1SD, Hinxton, Cambridge, UK
> +44 1223 49 4588
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mail.scipy.org/pipermail/ipython-user/attachments/20130409/79dcef5e/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Tue, 9 Apr 2013 16:30:42 +0200
> From: Matthias BUSSONNIER <bussonniermatthias@gmail.com>
> Subject: Re: [IPython-User] %sql magic released
> To: "Discussions about using IPython. http://ipython.org"
>         <ipython-user@scipy.org>
> Message-ID: <712A195C-D8EA-47BC-B35D-63BB4E750A67@gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Shot in the dark based on previous discussion on the ML.
>
> Try :
>
> %config SqlMagic.autolimit = 1000
>
> or at least, see if
>
> %config SqlMagic
>
> Tell you something.
>
> This is because in config files, `c` represent the current config "dict"
> which your current session does not now about.
>
> Will not, of course,  persist across sessions.
> --
> Matthias
>
>
> Le 9 avr. 2013 ? 16:24, Alan a ?crit :
>
> > Dear Catherine,
> >
> > %sql magic is fantastic to say the minimum. I am testing with oracle db
> and it seems to work just fine. However,
> >
> >
> > c.SqlMagic.autolimit = 1000
> > seems to not be working for me. Is there a way of setting this limit in
> a already started ipython session?
> >
> > Thanks,
> >
> > Alan
> >
> >
> > On 29 March 2013 18:45, Catherine Devlin <catherine.devlin@gmail.com>
> wrote:
> > https://pypi.python.org/pypi/ipython-sql
> >
> > Works with any database SQLAlchemy can see.  Renders query results as
> HTML tables in the Notebook, or pretty text at the text console.
> >
> > Enjoy & give feedback!
> >
> > I suggest just installing with ``pip install ipython-sql``.  I haven't
> been able to figure out how to use %load_ext successfully, since it's not a
> single .py file, and using %load_ext for the whole .zip file from
> https://github.com/catherinedevlin/ipython-sql/archive/master.zip doesn't
> seem to work... but if you know how to fix that, do tell...
> >
> > Thanks,
> > --
> > - Catherine
> > http://catherinedevlin.blogspot.com
> >
> > _______________________________________________
> > IPython-User mailing list
> > IPython-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-user
> >
> >
> >
> >
> > --
> > Alan Wilter SOUSA da SILVA, DSc
> > Bioinformatician, UniProt - PANDA, EMBL-EBI
> > CB10 1SD, Hinxton, Cambridge, UK
> > +44 1223 49 4588
> > _______________________________________________
> > 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/20130409/ea76435a/attachment.html
>
> ------------------------------
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
> End of IPython-User Digest, Vol 114, Issue 11
> *********************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20130412/c32175f7/attachment.html 


More information about the IPython-User mailing list