-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Description
This is related (if not identical) to #514 which I don't understand why was closed (it was not closed with "impossible to fix" or "we don't have time to fix" which I would understand).
PR #3089 sounds like it has (at least partially) fixed it, but I am not sure it did. I am running ipython v5.3.0 (with jupyter-client v5.0.0 and jupyter-core v4.3.0). This version of ipython has been released after said PR has been merged, so it should be included, however I have not explicitly looked if that code made into into it.
Usual example: the following hangs forever
!(echo "type something"; read foo; echo $foo)
and whatever one types is interpreted as browser shortcut (if applicable) instead of stdin.
Similarly, and perhaps more difficult to fix because of the way ssh handles input for security reasons, this hangs forever too:
!ssh -o StrictHostKeyChecking=no -T username@someserver.com
As far as I'm concerned, it'd be fine if the magic needs to become aware of the need for input, so I'd be ok with having to replace the above commands with something like
%needs_input !(echo "type something"; read foo; echo $foo)
and
%needs_input !ssh -o StrictHostKeyChecking=no -T username@someserver.com
if that simplify the implementation