Skip to content

Commit

Permalink
Merge pull request #375 from goodkiwillc/main
Browse files Browse the repository at this point in the history
fix getsource for jupyter context
  • Loading branch information
MadcowD authored Nov 14, 2024
2 parents 414abc6 + 412fd0e commit 22e7b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ell/util/closure.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def lexical_closure(
while hasattr(func, "__ell_func__"):
func = func.__ell_func__

source = getsource(func, lstrip=True)
source = getsource(func, lstrip=True, force=True)
already_closed.add(hash(func))

globals_and_frees = _get_globals_and_frees(func)
Expand Down

0 comments on commit 22e7b88

Please sign in to comment.