Thomas Kluyver

Results 876 comments of Thomas Kluyver

The bash_kernel is not emulating bash in Python: it's actually running a bash shell in a separate process and sending your code to that.

Aha, good find. I think that might well be it. Would you like to make a PR? pexpect's `spawn()` now takes a `preexec_fn` like subprocess.

The equivalent of the `ipython kernel` command looks like `.../bin/python -m bash_kernel` - see here for where it's generated: https://github.com/takluyver/bash_kernel/blob/0966dc102d7549f5c909c93de633a95b2af9f707/bash_kernel/install.py#L9

`bash_kernel` works by running bash in a virtual terminal and scraping characters from it. It changes some of the terminal settings to achieve that. If you reset them from bash,...

Yep, that's `pexpect.replwrap`. IIRC, it disables echo and changes the prompt to something odd so you're unlikely to see the prompt in other output. If it's coming from `bashrc`, it...

Truth be told, I'm unlikely to get to doing anything about it - it's not a problem for me personally, and there are plenty of other things to do. I'll...

Do you want to have a look at the code (images.py) and see if it's easy to extend for SVG? On Wed, 14 Mar 2018, 10:06 a.m. Gullumluvl, wrote: >...

Thanks! I think it's fine to load the first 100 bytes or so and just see if it contains `

It's supposed to override your PS1 by starting bash with [this script](https://github.com/pexpect/pexpect/blob/master/pexpect/bashrc.sh). It might be missing something, though. I'm just working on fixing an issue where PROMPT_COMMAND overrides it -...

I think it's something related to the widgets that sends a probe message. There's no need to worry about it, as far as I know.