David Strozzi | 3 Jul 07:47

ipython emacs pylab?

Hi,

Is there a way to make ipython play nicely w/ matplotlib (namely,
pylab) from within emacs?  In a plain terminal, you can do ipython
-pylab.  Then, when you plot something, you don't have to type show()
to see it, or kill the figure to get to the prompt.

I'm almost certain there's a way.  But I re-installed linux and a
bunch of stuff got lost...  Perusal of the web hasn't helped so far.

Whatever the answer, perhaps it should be added to the comments in
ipython.el, or to:

http://ipython.scipy.org/doc/manual/index.html#x-emacs-configuration

Thanks much,
David Strozzi
Fernando Perez | 3 Jul 08:05

Re: ipython emacs pylab?

On Wed, Jul 2, 2008 at 10:51 PM, David Strozzi <david.strozzi <at> gmail.com> wrote:
> Hi,
>
> Is there a way to make ipython play nicely w/ matplotlib (namely,
> pylab) from within emacs?  In a plain terminal, you can do ipython
> -pylab.  Then, when you plot something, you don't have to type show()
> to see it, or kill the figure to get to the prompt.
>
> I'm almost certain there's a way.  But I re-installed linux and a
> bunch of stuff got lost...  Perusal of the web hasn't helped so far.

Yup, just use this in your .emacs file

;; Configure the ipython call for pylab use
(setq py-python-command-args '("-pylab" "-colors" "LightBG"))

(obviously adjust to taste).

> Whatever the answer, perhaps it should be added to the comments in
> ipython.el, or to:
>
> http://ipython.scipy.org/doc/manual/index.html#x-emacs-configuration

Will do.

Cheers,

f
Fernando Perez | 5 Jul 00:15

Re: ipython emacs pylab?

On Wed, Jul 2, 2008 at 11:05 PM, Fernando Perez <fperez.net <at> gmail.com> wrote:

>> Whatever the answer, perhaps it should be added to the comments in
>> ipython.el, or to:
>>
>> http://ipython.scipy.org/doc/manual/index.html#x-emacs-configuration
>
> Will do.

Done in both places, will be pushed upstream later.

Cheers,

f
David Strozzi | 5 Jul 00:24

Re: ipython emacs pylab?

Thanks a lot!  I can now happily use ipython, pylab, numpy, emacs, all
at once.  -dave

On Fri, Jul 4, 2008 at 3:15 PM, Fernando Perez <fperez.net <at> gmail.com> wrote:
> On Wed, Jul 2, 2008 at 11:05 PM, Fernando Perez <fperez.net <at> gmail.com> wrote:
>
>>> Whatever the answer, perhaps it should be added to the comments in
>>> ipython.el, or to:
>>>
>>> http://ipython.scipy.org/doc/manual/index.html#x-emacs-configuration
>>
>> Will do.
>
> Done in both places, will be pushed upstream later.
>
> Cheers,
>
>
> f
>

Gmane