You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going to report what I believe is the same type of scenario, where I didn't get an inline value for outer_function():
# Variable reuse and scopes
def outer_function():
outer_var = 'outer'
def inner_function():
inner_var = 'inner'
print(f'Inner function can access: {outer_var} and {inner_var}')
inner_function()
print(f'Outer function can access: {outer_var}')
c = 100
result = 10
return c
outer_function()
But it looks like this matches how local_fn() was shown in the TPI:
yep, this one is also by design, similar to the reason i closed another issue. we only store variable values in the kernel, so I can get the value of the fn if assigned to a variable, but otherwise that's only known during execution of a cell, not after.
Testing #241791
I would expect to see inline values for at least line
15
given the other examples. But, I don't see any in this cell.here's the code:
The text was updated successfully, but these errors were encountered: