Skip to content

Headless execution for running Deepnote notebooks #35

@Artmann

Description

@Artmann

Create a Python CLI tool in deepnote-toolkit that enables headless execution of Deepnote notebooks with parameter support. This will be used for automation, CI/CD, and running notebooks from the command line.

Parameter Support

Support passing parameters to notebooks. Notebooks can have input blocks (cells with type: "input"), and CLI parameters should be injected as variables before execution.

Environment Handling

  • Use the current Python environment by default
  • Support pointing to a specific virtual environment
  • Optional environment validation against notebook requirements

Execution

  • Synchronous execution (wait for completion)
  • Use Deepnote Kernel for execution
  • Return appropriate exit codes (0=success, non-zero=failure)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions