Title: How do I pass input to PythonShell.runString() ? · Issue #293 · extrabacon/python-shell · GitHub
Open Graph Title: How do I pass input to PythonShell.runString() ? · Issue #293 · extrabacon/python-shell
X Title: How do I pass input to PythonShell.runString() ? · Issue #293 · extrabacon/python-shell
Description: 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....
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/extrabacon/python-shell/issues/293
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How do I pass input to PythonShell.runString() ?","articleBody":"\u003c!--If you are having a problem inside your python code please do not create a issue here. \r\nPython-shell just runs your python code, it is not responsible for any errors in the code itself.--\u003e\r\n\r\n**The Question**:\r\nI 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 ?\r\n\r\n**Any relevant python/javascript code:**\r\nThis is how I am using it currently...\r\n\r\n`PythonShell.runString('some python code',null)\r\n\t\t\t.then(messages=\u003e{\r\n\t\t\t\tconsole.log(messages)\r\n\t\t\t\t//server stuff\r\n\t\t\t})\r\n\t\t\t.catch(err =\u003e {\r\n\t\t\t\tconsole.log(err)\r\n\t\t\t\t// respond with err\r\n\t\t\t})`\r\n\r\nHow can I pass input to the program ?","author":{"url":"https://github.com/Saswat689","@type":"Person","name":"Saswat689"},"datePublished":"2023-03-20T05:20:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/293/python-shell/issues/293"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:95f8af54-8a3a-99e5-d458-08e06029cb0e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A106:1A6433:3E9F390:52B5515:69747846 |
| html-safe-nonce | 4358980e15e29b1928627cc0114cf85a002e428c694292a431c119ac14afbc30 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMTA2OjFBNjQzMzozRTlGMzkwOjUyQjU1MTU6Njk3NDc4NDYiLCJ2aXNpdG9yX2lkIjoiNzY0NzMxNjA0Njg0NjkxNjY3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 293361fecae6d9449c79219f9170c1cdf2a6cb3fb0b9e83fe4f405d77a9eb790 |
| hovercard-subject-tag | issue:1631406046 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/extrabacon/python-shell/293/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26e5039246498453b0937a16e06a4766730d51de0116f7bd7e0d33145f2ba906/extrabacon/python-shell/issues/293 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26e5039246498453b0937a16e06a4766730d51de0116f7bd7e0d33145f2ba906/extrabacon/python-shell/issues/293 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Saswat689 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/extrabacon/python-shell git https://github.com/extrabacon/python-shell.git |
| octolytics-dimension-user_id | 1558613 |
| octolytics-dimension-user_login | extrabacon |
| octolytics-dimension-repository_id | 17671651 |
| octolytics-dimension-repository_nwo | extrabacon/python-shell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17671651 |
| octolytics-dimension-repository_network_root_nwo | extrabacon/python-shell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width