iPython debugger raises `NameError: name … is not defined` January 6, 2024 by Tarik A possible solution/workaround is to run globals().update(locals()) before running the list comprehension in (i)pdb.