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

Function embed

src/ptpython/repl.py:519–530  ·  view source on GitHub ↗
(
    globals: dict[str, Any] | None = ...,
    locals: dict[str, Any] | None = ...,
    configure: Callable[[PythonRepl], None] | None = ...,
    vi_mode: bool = ...,
    history_filename: str | None = ...,
    title: str | None = ...,
    startup_paths: Sequence[str | Path] | None = ...,
    patch_stdout: bool = ...,
    patch_stdout_raw: bool = ...,
    return_asyncio_coroutine: Literal[False] = ...,
)

Source from the content-addressed store, hash-verified

517
518@overload
519def embed(
520 globals: dict[str, Any] | None = ...,
521 locals: dict[str, Any] | None = ...,
522 configure: Callable[[PythonRepl], None] | None = ...,
523 vi_mode: bool = ...,
524 history_filename: str | None = ...,
525 title: str | None = ...,
526 startup_paths: Sequence[str | Path] | None = ...,
527 patch_stdout: bool = ...,
528 patch_stdout_raw: bool = ...,
529 return_asyncio_coroutine: Literal[False] = ...,
530) -> None: ...
531
532
533@overload

Callers 6

runFunction · 0.90
mainFunction · 0.90
interactive_shellFunction · 0.90
mainFunction · 0.90
interactFunction · 0.90
in_threadFunction · 0.90

Calls 4

runMethod · 0.95
PythonReplClass · 0.85
coroutineFunction · 0.85
configureFunction · 0.50

Tested by

no test coverage detected