A short ipython notebook cell:
%%bash
read value
5
echo "Value: $value"
The output for this cell is Value: 5
Is possible to introduce the value interactively using the ipython notebook?
If now I try to run this:
%%bash
ssh user@host pwd
since is the first time trying to connect to host
, ssh launches the question:
Are you sure you want to continue connecting (yes/no)?
But this question is printed in the shell where I started the ipython notebook, and not in the notebook itself. And here I can write the answer in the shell.
Would be possible to display the output and also introduce my answer through the notebook web interface?