The notebook I use asks for some user input. I can change code within the Jupyter Notebook but I cannot change the code of the Python libraries the Jupyter Notebook is relying on. The user input request comes from one of these libraries.
Is it possible to have Jupyter Notebook automatically send some predefined user input? That is to say, simulate the user input?
For example, in the following Jupyter Notebook cell, I would like to have Jupyter Notebook automatically inputs O
during the user prompt so that the user doesn't have to enters any input themselves:
The user input comes from some library via this code:
inp = input ("Dataset with same name already exists.\nEnter 'O' to Overwrite or 'L' to Load the existing one." )