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
Something I would often like to do with jupyter_spaces is to do a bunch of computation with temporary variables, and assign the final result to a persistent/global variable. Right not, I have been doing this by defining simple zero-argument functions that encapsulate all the computation in a cell, and then invoke that function to catch the result. Something like
where result1 is what I would like to share with other cells.
I feel like this should be doable with jupyter_spaces, but I don't sufficiently follow the discussion of scoping in the readme. There it says that all assignments are in the local scope, so I think in my example, result1 will not be visible outside. I can't tell whether there's anything I can do to "declare" a value in global scope to smuggle values out of the cell.
The text was updated successfully, but these errors were encountered:
Something I would often like to do with jupyter_spaces is to do a bunch of computation with temporary variables, and assign the final result to a persistent/global variable. Right not, I have been doing this by defining simple zero-argument functions that encapsulate all the computation in a cell, and then invoke that function to catch the result. Something like
where
result1
is what I would like to share with other cells.I feel like this should be doable with jupyter_spaces, but I don't sufficiently follow the discussion of scoping in the readme. There it says that all assignments are in the local scope, so I think in my example,
result1
will not be visible outside. I can't tell whether there's anything I can do to "declare" a value in global scope to smuggle values out of the cell.The text was updated successfully, but these errors were encountered: