Manage stdout and stdin in ipython notebook -
a short ipython notebook cell:
%%bash read value 5 echo "value: $value"
the output cell value: 5
possible introduce value interactively using ipython notebook?
if try run this:
%%bash ssh user@host pwd
since first time trying connect host
, ssh launches question:
are sure want continue connecting (yes/no)?
but question printed in shell started ipython notebook, , not in notebook itself. , here can write answer in shell.
would possible display output , introduce answer through notebook web interface?
this frustrating aspect of notebook, there's (now merged) pull request provide ability interactive stdin within notebook. make use of you'd have install master
branch believe.
Comments
Post a Comment