##// END OF EJS Templates
new completer for qtconsole....
new completer for qtconsole. add a completer to the qtconsole that is navigable by arraow keys and tab. One need to call it twice to get it on focus and be able to select completion with Return. looks like zsh completer, not the gui drop down list of --gui-completer. This also try to split the completion logic from console_widget, and try to keep the old completer qui around. The plain completer that never takes focus back, and the QlistWidget completer. to switch between the 3, the --gui-completion flag as been changed to take an argument (plain, droplist, ncurses).

File last commit:

r6035:3077781f
r7389:1422d277
Show More
task1.ipynb
117 lines | 2.1 KiB | text/plain | TextLexer

Simple task farming example

In [3]:
from IPython.parallel import Client

A Client.load_balanced_view is used to get the object used for working with load balanced tasks.

In [4]:
rc = Client()
v = rc.load_balanced_view()

Set the variable d on all engines:

In [5]:
rc[:]['d'] = 30

Define a function that will be our task:

In [6]:
def task(a):
    return a, 10*d, a*10*d

Run the task once:

In [7]:
ar = v.apply(task, 5)

Print the results:

In [8]:
print "a, b, c: ", ar.get()
a, b, c:  [5, 300, 1500]