a = some object
def func(x):
return a.function(x)
x = [1,2,3]
with cluster_view(scheduler=None, queue=None, num_jobs=5,
extra_params={"run_local": True}) as view:
y = view.map(func, x)
Is there a way to be able to access the "a" object? Right now I am getting the "NameError: name "a" not defined" error.
If I have the following code for example:
Is there a way to be able to access the "a" object? Right now I am getting the "NameError: name "a" not defined" error.