# Pywren "Hello World" to see if Pywren is working

import pywren_ibm_cloud as pywren

def hello(name):
    return 'Hello {}!'.format(name)

pw = pywren.local_executor()
#pw = pywren.cloudrun_executor()
#pw = pywren.cloudrun_executor(log_level="DEBUG")
pw.call_async(hello, 'World')
print(pw.get_result())

bb964351b36105ee68f94211fa1a145a5b390c8e
<mask token>


def hello(name):
    return 'Hello {}!'.format(name)


<mask token>

<mask token>


def hello(name):
    return 'Hello {}!'.format(name)


<mask token>
pw.call_async(hello, 'World')
print(pw.get_result())

<mask token>


def hello(name):
    return 'Hello {}!'.format(name)


pw = pywren.local_executor()
pw.call_async(hello, 'World')
print(pw.get_result())

import pywren_ibm_cloud as pywren


def hello(name):
    return 'Hello {}!'.format(name)


pw = pywren.local_executor()
pw.call_async(hello, 'World')
print(pw.get_result())

# Pywren "Hello World" to see if Pywren is working

import pywren_ibm_cloud as pywren

def hello(name):
    return 'Hello {}!'.format(name)

pw = pywren.local_executor()
#pw = pywren.cloudrun_executor()
#pw = pywren.cloudrun_executor(log_level="DEBUG")
pw.call_async(hello, 'World')
print(pw.get_result())
