Get local scope at given stack depth. Parameters ---------- stack_depth : int Depth relative to calling frame
(self, stack_depth)
| 2542 | return result |
| 2543 | |
| 2544 | def get_local_scope(self, stack_depth): |
| 2545 | """Get local scope at given stack depth. |
| 2546 | |
| 2547 | Parameters |
| 2548 | ---------- |
| 2549 | stack_depth : int |
| 2550 | Depth relative to calling frame |
| 2551 | """ |
| 2552 | return sys._getframe(stack_depth + 1).f_locals |
| 2553 | |
| 2554 | def run_cell_magic(self, magic_name, line, cell): |
| 2555 | """Execute the given cell magic. |