Evan Howell | 1 Aug 07:56
Picon

email

_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
Evan Howell | 1 Aug 21:56
Picon

Ipython -pylab permissions problem (matplotlib?)

HI,

First, I apologize for the post entitled "email" yesterday, I was trying to validate my subscription to the list and in my enthusiasm I measured once and had to cut twice.

Second, I am a recent Matlab convert and am rapidly trying to get up to speed in the Numpy/SciPy/Ipython world, so I apologize if I seem a bit "out of my league" :)

I am having a great time transitioning over, no small part to the fantastic ipython environment. I just have a couple of small questions that hopefully will aid me today and in the future.

First, is there a way (that I haven't seen yet) to search the mailing list archives, either here or on gmane?

Second, I use Ipython with the -pylab switch, and am having a tiny problem with permission problems when dealing with widgets (either TkAgg, wxAgg, etc.). At times when dealing with the figure window I will get a stream of warnings that say:
I/O error : Permission denied
I/O error : Permission denied etc....

When I used the default -pylab backend (TkAgg I believe) this "error" would appear when I first plotted something, as well as when trying to save a figure (using the save figure button on the bottom of the figure pane). I have switched to wxAgg and while the "errors" are gone when opening a figure window, they occur when I try to save the plot. I have seen this message appear in other places as well, yet as far as I can tell it always happens while I am dealing with the figure window.

Has anyone ever seen this before? (hence the question above on searching)
Is this even an ipython issue, or maybe matplotlib?

And finally, this is by no means a big deal to see these, I know. It's a minor annoyance, but it becomes kind of a problem when using screen, as my screen fills up with warnings. Maybe there's just a way to turn them off? Or do they signify a larger permissions problem?

In advance, I appreciate any and all help, and I just want to say thanks also for such a great front end (and more) to python!

Thanks,

Evan
_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
Ryan Krauss | 6 Aug 18:32
Picon

logging a Pdb session

I am about to explore someone else's code using Pdb.  It will probably
be a fairly lengthy exploration and I would like to dump the session
to a file when I am done.  Is there an easy way to do this other than
copying and pasting from the bash shell?

Thanks,

Ryan
Fernando Perez | 6 Aug 21:15
Picon
Gravatar

Re: %who et al give too much

On Mon, Jul 28, 2008 at 6:24 AM, Michael Graber
<michael <at> ini.phys.ethz.ch> wrote:
>
> Hi all
>
> I have the problem that when using %who or %whos, alos %who_ls i do
> not only get the variables and functions defined by myself but also
> loads of of other functions and variables, like in the example at the
> bottom, where only 'data' is a variable i introduced.
>
> I'm using a Mac OS 10.5.3 and ipython 0.8.3.svn.r3001. I've installed
> the readline-2.5.1-py2.5-macosx-10.5-i386.egg via easy_install ...
>
> This is not how it was meant to be?! Anybody an idea?

You probably ran a script that declared all those variables, so
technically you probably did define them.

It's also worth noting that in the current release, we control a bit
more the namespace pollution in pylab, which may be some of what
you're seeing here:

bic128[src]$ ipython -pylab
Python 2.5.1 (r251:54863, Jul 10 2008, 17:25:56)
Type "copyright", "credits" or "license" for more information.

IPython 0.9.0.bzr.r1016 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object'. ?object also works, ?? prints more.

  Welcome to pylab, a matplotlib-based Python environment.
  For more information, type 'help(pylab)'.

In [1]: %who
Interactive namespace is empty.

We're working hard on getting a release ready, so you should be able
to upgrade soon, if you don't want to run from the bzr trunk (which is
easy nonetheless).

Cheers,

f
Fernando Perez | 6 Aug 21:16
Picon
Gravatar

Re: logging a Pdb session

On Wed, Aug 6, 2008 at 9:32 AM, Ryan Krauss <ryanlists <at> gmail.com> wrote:
> I am about to explore someone else's code using Pdb.  It will probably
> be a fairly lengthy exploration and I would like to dump the session
> to a file when I am done.  Is there an easy way to do this other than
> copying and pasting from the bash shell?

I'm afraid not in ipython proper, but I think screen has some logging
abilities.  Have you tried that?

Cheers,

f
Tom Roche | 7 Aug 16:45
Picon
Favicon

install for cygwin?


I'm currently running python on cygwin, but lust for shell features in
IPython. How can one install IPython for Cygwin? I see

http://ipython.scipy.org/moin/Download
> CygWin

> IPython works mostly OK, though some users have reported problems
> with prompt coloring. No satisfactory solution to this has been
> found so far, you may want to disable colors permanently in the
> ipythonrc configuration file if you experience problems. If you have
> proper color support under cygwin, please post to the IPython
> mailing list so this issue can be resolved for all users.

but no instructions on how to do that. I also didn't see an ipython
package when running cygwin's setup.exe against

ftp://mirrors/kernel.org

which is usually complete and current. Apologies if this is a FAQ, but
I also don't see either anything relevant @

http://ipython.scipy.org/moin/FAQ

or any easy way to search this list.

TIA, Tom Roche <Tom_Roche <at> pobox.com>
Tony Cappellini | 7 Aug 21:14
Picon

Re: logging a Pdb session

Screen is awesome, but can get confusing when first using it.

If screen is not installed, then see if the script command is.

type script, press enter/return

Everything that  is typed in or displayed will go to a file called
typescript in the current directory.

If you start script with a different filename as in

script mypdblog

everything will be written to mypdblog.

Ctrl-D or exit to stop script from executing (logging)

Message: 2
Date: Wed, 6 Aug 2008 12:16:36 -0700
From: "Fernando Perez" <fperez.net <at> gmail.com>
Subject: Re: [IPython-user] logging a Pdb session
To: "Ryan Krauss" <ryanlists <at> gmail.com>
Cc: ipython-user <at> scipy.org
Message-ID:
       <db6b5ecc0808061216u62190703m4d2e0d0655313985 <at> mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Wed, Aug 6, 2008 at 9:32 AM, Ryan Krauss <ryanlists <at> gmail.com> wrote:
> I am about to explore someone else's code using Pdb.  It will probably
> be a fairly lengthy exploration and I would like to dump the session
> to a file when I am done.  Is there an easy way to do this other than
> copying and pasting from the bash shell?

I'm afraid not in ipython proper, but I think screen has some logging
abilities.  Have you tried that?

Cheers,
Fernando Perez | 8 Aug 11:44
Picon
Gravatar

Re: install for cygwin?

Hi Tom,

On Thu, Aug 7, 2008 at 7:45 AM, Tom Roche <Tom_Roche <at> pobox.com> wrote:
>
> I'm currently running python on cygwin, but lust for shell features in
> IPython. How can one install IPython for Cygwin? I see
>
> http://ipython.scipy.org/moin/Download
>> CygWin
>
>> IPython works mostly OK, though some users have reported problems
>> with prompt coloring. No satisfactory solution to this has been
>> found so far, you may want to disable colors permanently in the
>> ipythonrc configuration file if you experience problems. If you have
>> proper color support under cygwin, please post to the IPython
>> mailing list so this issue can be resolved for all users.
>
> but no instructions on how to do that. I also didn't see an ipython
> package when running cygwin's setup.exe against
>
> ftp://mirrors/kernel.org
>
> which is usually complete and current. Apologies if this is a FAQ, but
> I also don't see either anything relevant @
>
> http://ipython.scipy.org/moin/FAQ

Honestly I don't know much, because I don't use cygwin myself and we
haven't heard from cygwin users in a while.  Recently most win32 users
seem to have been using it natively.  But given how cygwin is mostly a
unix, I'd imagine you could just download the tarball, and in cygwin
type

python setup.py install

using the cygwin python.   That should do the trick, let us know if it doesn't.

As for the colors, just edit the ipythonrc.ini file that ipython
creates and set the colors option to

colors NoColor

if the colored prompts give you trouble.

> or any easy way to search this list.

google('cygwin site:lists.ipython.scipy.org')

is what I use.  Not ideal, I'm afraid, but it gets the job done.

Cheers,

f
Peter Bienstman | 13 Aug 13:11
Picon
Favicon

cd tab completion too greedy?

Hi,

When I start ipython and I type

cd .ipyth<tab>

This gets expanded to

cd .ipython/db/shadowhist

Is there a way to just get it expanded to

cd .ipython/

Thanks!

Peter

_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
Reckoner | 13 Aug 19:55
Picon

incremental search backward not working on win32

on win32, I have downloaded the latest versions of pyreadline and
ipython, but Ctrl-R doesn't perform incremental search backward as
usual.

For example:

In [8]: <Ctrl-R>
run

produces only the last "run" and does not incrementally complete
through the history even though there are multiple "run" commands
find-able using the "up" arrow key.

I am using the  default Windows console (i.e. cmd window) and not some
other kind of console program.

Thanks in advance.

Gmane