nb_cli.handlers.script
async def list_scripts(*, python_path=None, cwd=None)
-
参数
-
python_path(str | None) -
cwd(Path | None)
-
-
返回
- list[str]
async def run_script(script_name, script_args=None, adapters=None, builtin_plugins=None, *, python_path=None, cwd=None, stdin=None, stdout=None, stderr=None)
-
参数
-
script_name(str) -
script_args(list[str] | None) -
adapters(list[SimpleInfo] | None) -
builtin_plugins(list[str] | None) -
python_path(str | None) -
cwd(Path | None) -
stdin(IO[Any] | int | None) -
stdout(IO[Any] | int | None) -
stderr(IO[Any] | int | None)
-
-
返回
- asyncio.subprocess.Process