Skip to content

How do I pass input to PythonShell.runString() ? #293

Description

@Saswat689

The Question:
I am executing some python code coming from client on the server. I want to provide some stdin to the program code. How do I do that ?

Any relevant python/javascript code:
This is how I am using it currently...

PythonShell.runString('some python code',null) .then(messages=>{ console.log(messages) //server stuff }) .catch(err => { console.log(err) // respond with err })

How can I pass input to the program ?

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions