def ff(x):
    print(x)
return x ** 2
sync = dview.map_sync(ff, [1, 2, 3, 4])
print('sync res=%r' % sync)
async = dview.map_async(ff, [1, 2, 3, 4])
print('async res=%r' % async)
async.get()
Printing to stdout in IPython parallel processes