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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions