Show More
@@ -2328,8 +2328,13 b' class InteractiveShell(SingletonConfigurable):' | |||
|
2328 | 2328 | magic_arg_s = line |
|
2329 | 2329 | else: |
|
2330 | 2330 | magic_arg_s = self.var_expand(line, stack_depth) |
|
2331 | kwargs = {} | |
|
2332 | if getattr(fn, "needs_local_scope", False): | |
|
2333 | kwargs['local_ns'] = sys._getframe(stack_depth).f_locals | |
|
2334 | ||
|
2331 | 2335 | with self.builtin_trap: |
|
2332 |
|
|
|
2336 | args = (magic_arg_s, cell) | |
|
2337 | result = fn(*args, **kwargs) | |
|
2333 | 2338 | return result |
|
2334 | 2339 | |
|
2335 | 2340 | def find_line_magic(self, magic_name): |
General Comments 0
You need to be logged in to leave comments.
Login now