Get local scope at given stack depth. Parameters ---------- stack_depth : int Depth relative to calling frame
(self, stack_depth)
| 2327 | return result |
| 2328 | |
| 2329 | def get_local_scope(self, stack_depth): |
| 2330 | """Get local scope at given stack depth. |
| 2331 | |
| 2332 | Parameters |
| 2333 | ---------- |
| 2334 | stack_depth : int |
| 2335 | Depth relative to calling frame |
| 2336 | """ |
| 2337 | return sys._getframe(stack_depth + 1).f_locals |
| 2338 | |
| 2339 | def run_cell_magic(self, magic_name, line, cell): |
| 2340 | """Execute the given cell magic. |