diff --git a/README.md b/README.md index 3fe71f0..7529785 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,12 @@ jupyter notebook 3. The release notes are automatically generated as a draft release after each PR. 4. Create a GitHub release from the draft release against the newly pushed tag +## Known issues + +### Uncaptured stdout + +This kernel uses xonsh with [`$XONSH_CAPTURE_ALWAYS = True`](https://xon.sh/envvars.html#xonsh-capture-always) and some commands that have waiting for user input could be uncaptured. + ## Credits * This package was created with [xontrib cookiecutter template](https://github.com/xonsh/xontrib-cookiecutter). diff --git a/xonsh_jupyter/kernel.py b/xonsh_jupyter/kernel.py index b4cb53a..c2b2a48 100644 --- a/xonsh_jupyter/kernel.py +++ b/xonsh_jupyter/kernel.py @@ -491,7 +491,10 @@ def handle_kernel_info_request(self, message, identities): def main(): setup( shell_type=JupyterShell, - env={"PAGER": "cat"}, + env={ + "PAGER": "cat", + "XONSH_CAPTURE_ALWAYS": True, + }, aliases={"less": "cat"}, xontribs=["coreutils"], threadable_predictors={"git": predict_true, "man": predict_true},