-
Notifications
You must be signed in to change notification settings - Fork 35
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 to run python input function? #17
Comments
def main(): in ios project how to implement the input function |
You can build UI using SwiftUI or UIKit and pass user input to Python code. |
but How to maintain the python running environment? When I receive a prompt to 'send something' and then enter a number, continue executing the subsequent python code? |
I see. So you want to keep using standard input/output. I guess it's possible but not easy. You can make a Pipe object and replace file descriptors of standard input/output with pipe's. Then either handle events or utilize async/await. |
No description provided.
The text was updated successfully, but these errors were encountered: