interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope.
(self, arg)
| 1464 | if e.startswith(text)] |
| 1465 | |
| 1466 | def do_interact(self, arg): |
| 1467 | """interact |
| 1468 | |
| 1469 | Start an interactive interpreter whose global namespace |
| 1470 | contains all the (global and local) names found in the current scope. |
| 1471 | """ |
| 1472 | ns = {**self.curframe.f_globals, **self.curframe_locals} |
| 1473 | code.interact("*interactive*", local=ns) |
| 1474 | |
| 1475 | def do_alias(self, arg): |
| 1476 | """alias [name [command [parameter parameter ...] ]] |