Skip to content

Python script output doesn't print until script execution finished #349

@Alonel

Description

@Alonel

I'm running Python scripts which can take a long time to finish running, due to that during the Python execution, print out to the screen the script stages so the users won't need to wait until the end without knowing what's going on. when I'm running vi Script-Server only when Python execution ends I get the complete STDOUT printed to the screen.

I found an ugly workaround which instead of printing out with print(), I'm printing using input() with Timeout of 1 sec before continuing before the user will able to prompt in, and then it prints out the messages in "real-time"

is this a bug or by design?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions