Michiel de Hoon | 3 May 02:12
Picon
Favicon

pygtk interactive


Hi everybody,

Today pygtk 2.15.0 became available, which is the first version of pygtk that can be used interactively
from plain Python. While this also simplifies the event loop in ipython, only the current developer's
version of ipython (and presumably version 0.10.0 and beyond) make use of this, and older versions of
ipython may not work correctly with pygtk 2.15.0. So if you're looking to update to pygtk 2.15.0, please
wait until ipython 0.10.0 is out.

Best,

--Michiel.
Adam | 4 May 18:55
Picon
Gravatar

Trouble with escape key and history searching

Hi ipython group,
  I've grown accustomed to using the 'escape' key to remove input at
the bash command prompt without holding down backspace.  When I do
this in ipython, though, it also kills the
'search-history-(forwards|backward)' capability of the command line
and does funny things to command line editing (e.g., if I try to
remove text using backspace, the deleted text reappears to the right
of my cursor with extra spaces).  Is my use of the 'escape' key
breaking the readline key mappings somehow?  Clearly it's bad practice
to use, so I should get out of the habit, but I'd like to learn how to
fix the problem too.

Thanks,
Adam
Jörgen Stenarson | 4 May 19:18
Picon

Re: Trouble with escape key and history searching

Adam skrev:
> Hi ipython group,
>   I've grown accustomed to using the 'escape' key to remove input at
> the bash command prompt without holding down backspace.  When I do
> this in ipython, though, it also kills the
> 'search-history-(forwards|backward)' capability of the command line
> and does funny things to command line editing (e.g., if I try to
> remove text using backspace, the deleted text reappears to the right
> of my cursor with extra spaces).  Is my use of the 'escape' key
> breaking the readline key mappings somehow?  Clearly it's bad practice
> to use, so I should get out of the habit, but I'd like to learn how to
> fix the problem too.
> 
Adam,

are you on linux, windows or something else? If you are on windows then 
this is probably a pyreadline issue and I would recommend making a bug 
report on https://bugs.launchpad.net/pyreadline

If you are on Linux I'm afraid I can't help you.

/Jörgen
Adam | 4 May 19:35
Picon
Gravatar

Re: Trouble with escape key and history searching

Mac OS 10.5.  Yeah, I looked into pyreadline but didn't get anything
out of it.  On the nix side, ipython just uses GNU readline, right?

Thanks,
Adam

On Mon, May 4, 2009 at 11:18 AM, Jörgen Stenarson
<jorgen.stenarson <at> bostream.nu> wrote:
> Adam skrev:
>>
>> Hi ipython group,
>>  I've grown accustomed to using the 'escape' key to remove input at
>> the bash command prompt without holding down backspace.  When I do
>> this in ipython, though, it also kills the
>> 'search-history-(forwards|backward)' capability of the command line
>> and does funny things to command line editing (e.g., if I try to
>> remove text using backspace, the deleted text reappears to the right
>> of my cursor with extra spaces).  Is my use of the 'escape' key
>> breaking the readline key mappings somehow?  Clearly it's bad practice
>> to use, so I should get out of the habit, but I'd like to learn how to
>> fix the problem too.
>>
> Adam,
>
> are you on linux, windows or something else? If you are on windows then this
> is probably a pyreadline issue and I would recommend making a bug report on
> https://bugs.launchpad.net/pyreadline
>
> If you are on Linux I'm afraid I can't help you.
>
(Continue reading)

Jörgen Stenarson | 4 May 19:41
Picon

Re: Trouble with escape key and history searching

Adam skrev:
> Mac OS 10.5.  Yeah, I looked into pyreadline but didn't get anything
> out of it.  On the nix side, ipython just uses GNU readline, right?
> 
No, not in general. Ipython uses whatever is installed as readline for 
the python you use. Which creates some difficulties on mac where apple 
supplies a non-gnu version of readline.

/Jörgen
_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Fernando Perez | 5 May 08:49
Picon
Favicon

Re: book on IPython

Hi Eduardo,

On Sat, Apr 18, 2009 at 9:17 AM, Eduardo Ismael <eismb <at> hotmail.com> wrote:
> Dear Mr. Perez,
>
> I read somewhere on the Internet you are the creator of IPython. It is an
> invaluable tool. Thanks for the great work!

Thanks for the kind words.  Many others contribute to it today, often
doing a better job than myself :)

> Are there any plans of publishing some kind of "pocket reference" (like
> those by O'Reilly) with commands, syntax and other specific details for
> IPython? That would definitely be something useful!

No, we don't have such a book or plan for the moment (too many other
things on our plates), but it would be great to have one.  If you end
up being interested in working on one yourself,  feel free to submit
it and we'll be happy to ship it as part of the IPython docs!

Cheers,

f

ps - these questions are best asked on the list (cc'd here) so that
others can benefit from the replies.

http://mail.scipy.org/mailman/listinfo/ipython-user
Prasoon Majumdar | 5 May 09:10
Picon

ipython subprocess module issue

Hi,

I got the ipython 0.8.4 build and compiled it with the instructions as :

python setup.py install

compilation worked fine but iam not able to import the subprocess module in ipython,

can anyone suggest any solution here.

I dont need any alternatives to subprocess module like os.open or other commands but only the info about the subprocess module inclusion in ipython.

Any help will be highly appreciated.



--
Regards,
Prasoon Majumdar

_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Ville M. Vainio | 5 May 09:21
Picon
Gravatar

Re: book on IPython

On Tue, May 5, 2009 at 9:49 AM, Fernando Perez
<Fernando.Perez <at> berkeley.edu> wrote:

>> Are there any plans of publishing some kind of "pocket reference" (like
>> those by O'Reilly) with commands, syntax and other specific details for
>> IPython? That would definitely be something useful!
>
> No, we don't have such a book or plan for the moment (too many other
> things on our plates), but it would be great to have one.  If you end
> up being interested in working on one yourself,  feel free to submit
> it and we'll be happy to ship it as part of the IPython docs!

This one has a (long) chapter on IPython:

http://oreilly.com/catalog/9780596515829/

--

-- 
Ville M. Vainio
http://tinyurl.com/vainio
Rohan Nicholls | 6 May 11:11

Re: TAB-Completion for emacs with python-2.6

Thanks for this, I upgraded my ubuntu, and ipython in emacs stopped working.
Now it is back on track.

Rohan

On Sun, Feb 15, 2009 at 7:15 PM, Thomas Bach <bachth <at> uni-mainz.de> wrote:
> Hi Folks,
>
> using ipython.el with python-2.6 and emacs 22.3 there was no proper
> tab-completion.
> I don't know exactly whats going on behind the scenes, but here is
> what i had to change, so it works now:
>
> taris% diff docs/emacs/ipython.el ~/.emacs.d/ipython-0.9.1/ipython.el
> 314c314
> <   "print ';'.join(__IP.Completer.all_completions('%s')) #PYTHON-MODE SILENT\n"
> ---
>>   "print(';'.join(__IP.Completer.all_completions('%s')))\n"
>
> Greets,
>        Thomas Bach.
> _______________________________________________
> IPython-user mailing list
> IPython-user <at> scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
>
_______________________________________________
IPython-user mailing list
IPython-user <at> scipy.org
http://mail.scipy.org/mailman/listinfo/ipython-user
Yves Frederix | 6 May 15:11
Picon

Logging of stdout of engines

Hi all,

I am using TaskClient.map(..) to parallelize part of my code and this
works really well. However, for debugging purposes, it is sometimes
interesting to be able to check the output (to stdout) of the engines
in a log file. The log files for the controller and engines seem to
log only messages related to ipython's internal bookkeeping and not
the output of the tasks they run. I have checked the documentation and
I don't seem to find anything there.
Is there a way of accomplishing this and access the output of the engines?

Many thanks,
YVES

Gmane