Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Problems with shell commands (magic) expecting output #10499

Copy link
Copy link
@davidedelvento

Description

@davidedelvento
Issue body actions

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

astrojuanlu and multimeric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.