As an example, if I have a cell that looks like:
In [*]: for i in range(int(input())):
When the cell is run, an input box pops up and waits for input to be provided. Is there a Built-in magic command or any way to programmatically supply values when
input() is encountered?
Best How To :
I write this as an answer, although this is more or less a comment.
One "hacky" way is to overwrite
input or make a generator which returns an input-function with a constant return value. So kind of mocking it…
This will work as:
>> input = input_generator(42)