Skip to content

Exported Python scripts define every helper inline, burying the workflow code #9525

Description

@kz930

Feature Summary

An exported Python script defines every helper it calls before the workflow code. The helpers make up most of the script. A CSV File Scan followed by a Filter exports as 93 lines, and 72 of them are 7 helper functions. The 16 lines that describe the workflow are hard to find under them.

Proposed Solution or Design

Move the helpers into a module, texera_helpers, and have the script import the ones it calls. The export downloads as a zip that holds script.py and texera_helpers.py, so the unzipped folder runs with python script.py and nothing installed. The module comes from the same Texera that wrote the script, so the two always match.

This is option B in #9368, which the discussion preferred over keeping the helpers inline or publishing them to PyPI.

Affected Area

Workflow UI, Other

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions