##// END OF EJS Templates
don't allow gethostbyname(gethostname()) failure to crash ipcontroller...
don't allow gethostbyname(gethostname()) failure to crash ipcontroller In some weird situations, socket.gethostbyname_ex(socket.gethostname()) can fail. Don't let this error raise, instead assume localhost and warn in these cases.

File last commit:

r3690:aafdf2be
r4239:9a4de00d
Show More
task1.py
12 lines | 188 B | text/x-python | PythonLexer
from IPython.parallel import Client
rc = Client()
v = rc.load_balanced_view()
rc[:]['d'] = 30
def task(a):
return a, 10*d, a*10*d
ar = v.apply(task, 5)
print "a, b, c: ", ar.get()