Ticket #232 (new defect)

Opened 8 months ago

Last modified 8 months ago

RemoteController dictionary interface not working as advertised

Reported by: reckoner Assigned to: bgranger
Priority: normal Milestone:
Component: ipython1 Version:
Severity: normal Keywords:
Cc:

Description

I have been going to the material on

http://ipython.scipy.org/moin/Parallel_Computing/Tutorial

and I can't get this to work.

rc[0].execute('print b', block=True)

when I try, I get


TypeError? Traceback (most recent call last)

c:\documents and settings\desktop\lms\<ipython console> in <module>()

c:\usr\lib\python2.5\site-packages\ipython1\kernel\multiengineclient.py in getitem(self, key)

TypeError?: getitem only takes strs

=================== I am using ipython 0.8.2 and the SVN version of ipython1 from February 5, 2008.

Thanks.

Change History

(follow-up: ↓ 3 ) 02/19/08 09:51:56 changed by bgranger

Sorry about this. In this case, the documentation is out of sync. We (at least for a while) got rid of the capability you are trying to use. The problem was that the code was completely untested and pretty buggy. We are really trying to have tests for everything and have been pulling the untested stuff out (at least until we can develop tests). We are open to adding this back in, but are in the middle of work on a new version of the client. This new client will have a much improved interface (but it will not be backward compatible). Question? Do you really like the interface you are trying to use. We have never had feedback from people saying they like/don't like it.

02/19/08 11:53:52 changed by yichun

This interface looks nice to me. But before today I totally missed this feature becasuse all I was doing were using rc.executeAll.

A suggestion, why call rc as "RemoteController?"? With this interface we can call rc directly as "Engines".

(in reply to: ↑ 1 ; follow-up: ↓ 4 ) 02/19/08 15:46:10 changed by reckoner

OK. Hopefully, the documentation will be updated to reflect this.

I like the interface, especially the %px and %autopx magic commands. It's kind of hard to understand all of the neat things in the code since the online documentation is out of date and the documentation in the source code is pretty terse for the average user (i.e. me).

Replying to bgranger:

[--snip--] Question? Do you really like the interface you are trying to use. We have never had feedback from people saying they like/don't like it.

(in reply to: ↑ 3 ) 02/19/08 17:07:06 changed by bgranger

Replying to reckoner:

OK. Hopefully, the documentation will be updated to reflect this.

Definitely. I will hopefully be merging my recent work into the ipython1 trunk. When I do, there will be updated docs.

I like the interface, especially the %px and %autopx magic commands. It's kind of hard to understand all of the neat things in the code since the online documentation is out of date and the documentation in the source code is pretty terse for the average user (i.e. me).

Understandable.

Also, in the new interface, we are not calling it the RemoteController?. Instead, we are using the name MultiEngineController? that better reflects the interface.

Replying to bgranger:

[--snip--] Question? Do you really like the interface you are trying to use. We have never had feedback from people saying they like/don't like it.