nb_cli.handlers.script

async def list_scripts(python_path=None)

  • ๅ‚ๆ•ฐ

    • python_path (str | None)
  • ่ฟ”ๅ›ž

    • list[str]

async def run_script(script_name, adapters=None, builtin_plugins=None, python_path=None, cwd=None, stdin=None, stdout=None, stderr=None)

  • ๅ‚ๆ•ฐ

    • script_name (str)

    • adapters (list[SimpleInfo] | None)

    • builtin_plugins (list[str] | None)

    • python_path (str | None)

    • cwd (pathlib.Path | None)

    • stdin (IO[Any] | int | NoneType)

    • stdout (IO[Any] | int | NoneType)

    • stderr (IO[Any] | int | NoneType)

  • ่ฟ”ๅ›ž

    • asyncio.subprocess.Process