interact Start an interactive interpreter whose global namespace contains all the (global and local) names found in the current scope.
(self, arg)
| 1384 | if e.startswith(text)] |
| 1385 | |
| 1386 | def do_interact(self, arg): |
| 1387 | """interact |
| 1388 | |
| 1389 | Start an interactive interpreter whose global namespace |
| 1390 | contains all the (global and local) names found in the current scope. |
| 1391 | """ |
| 1392 | ns = {**self.curframe.f_globals, **self.curframe_locals} |
| 1393 | code.interact("*interactive*", local=ns) |
| 1394 | |
| 1395 | def do_alias(self, arg): |
| 1396 | """alias [name [command [parameter parameter ...] ]] |