Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Saswat689 opened this issue Mar 20, 2023 · 0 comments
Open

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

Saswat689 opened this issue Mar 20, 2023 · 0 comments
Labels

Comments

@Saswat689
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant