Issue
I'm running a shell execute command in a notebook (Google Collaboratory), and such command prompts me to give a yes/no answer. How can I respond to this prompt shell message within the notebook?
Solution
Update: Colab now supports input prompts, so you should see these immediately, e.g.,
Old answer: A typical pattern is to run the command without prompts, if it has such an option. For example, for installation using apt
, provide the option -y
.
If no such option exists, you can do something like piping yes to the program like so: yes | programThatHasConfirmationPrompts
.
Answered By - Bob Smith
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.