MCPcopy
hub / github.com/prompt-toolkit/ptpython / interact

Function interact

examples/ssh-and-telnet-embed.py:33–35  ·  view source on GitHub ↗
(connection: PromptToolkitSSHSession | TelnetConnection)

Source from the content-addressed store, hash-verified

31
32
33async def interact(connection: PromptToolkitSSHSession | TelnetConnection) -> None:
34 global_dict = {**globals(), "print": print_formatted_text}
35 await embed(return_asyncio_coroutine=True, globals=global_dict)
36
37
38async def main(ssh_port: int = 8022, telnet_port: int = 8023) -> None:

Callers

nothing calls this directly

Calls 1

embedFunction · 0.90

Tested by

no test coverage detected