Skip to content

Allow pre-defined std input #4

Description

@nkitsaini

If there was a way to define std-input content at start then we wouldn't need hanger server for some of the cases. My specific case is creating an online environment to practice algorithmic programming questions, in this case user does not need interactive input. Defining an input in text-area before the run should work.

brython.runCode(code, std_input_text) // now the runner does not block on input, it either takes it from `std_input_text` or EOF.

By the way, I also didn't get why we can't do the whole input dance locally. But I'll look more into it to understand the problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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