Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

fix: missing newline on multi-line output#61

Open
Jie (cnzhujie) wants to merge 1 commit intolangchain-ai:mainfrom
cnzhujie:fix/stdout-multi-line
Open

fix: missing newline on multi-line output#61
Jie (cnzhujie) wants to merge 1 commit intolangchain-ai:mainfrom
cnzhujie:fix/stdout-multi-line

Conversation

@cnzhujie
Copy link
Copy Markdown

As stated in the Pyodide documentation, the stdout and stderr of loadPyodide are callbacks triggered per line of output. Therefore, the final result needs to be joined using \n.

https://github.com/pyodide/pyodide/blob/2957085abec190a54652af7555830617397085ed/docs/usage/faq.md#how-can-i-control-the-behavior-of-stdin--stdout--stderr

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant