Closed edublancas closed 2 years ago
Given the following snippet:
x = 1 def add(y): return x + y add(y=10)
add, depends on x to work, however, since the library creates a new exported.py file with the function definitions, they no longer have access to the global variable.
add
x
exported.py
So we need to update the function calls from:
add(y=10)
to:
add(y=10, x=x)
And modify the function's signature to:
def add(x, y): return x + y
we fixed this in https://github.com/ploomber/soorgeon/issues/13
Given the following snippet:
add
, depends onx
to work, however, since the library creates a newexported.py
file with the function definitions, they no longer have access to the global variable.So we need to update the function calls from:
to:
And modify the function's signature to: