Skip to content

Conversation

joouha
Copy link
Contributor

@joouha joouha commented May 22, 2023

This PR sets the standard output of subprocess to be captured by default in the xonsh kernel.

This means that the output of external commands will sent to connected kernel clients, instead of being displayed in the terminal where the kernel is running.

@joouha joouha changed the title Always capture subprocess stdout Capture subprocess stdout by default May 23, 2023
@anki-code anki-code self-requested a review May 23, 2023 11:38
@anki-code
Copy link
Member

anki-code commented May 23, 2023

hi @joouha!
This is not working for me:

xonsh
xpip install -U git+https://github.com/joouha/xontrib-jupyter@fix-subproc-stdout
cd /tmp
euporie-notebook --kernel-name xonsh
image

If I run this many times:

  • sometimes I see just 1
  • sometimes I see just 1 2
  • sometimes I see just 1 <ls result> (without 2)

@anki-code
Copy link
Member

@joouha what do you think, why we have unstable output?

@anki-code anki-code marked this pull request as draft March 18, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants