diff --git a/bash_kernel/kernel.py b/bash_kernel/kernel.py index ad65c52..a451158 100644 --- a/bash_kernel/kernel.py +++ b/bash_kernel/kernel.py @@ -105,9 +105,12 @@ def _start_bash(self): finally: signal.signal(signal.SIGINT, sig) + # Disable bracketed paste (see ) + self.bashwrapper.run_command("bind 'set enable-bracketed-paste off' >/dev/null 2>&1 || true") # Register Bash function to write image data to temporary file self.bashwrapper.run_command(image_setup_cmd) + def process_output(self, output): if not self.silent: image_filenames, output = extract_image_filenames(output) diff --git a/pyproject.toml b/pyproject.toml index 6e08364..9ce6b49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ module = "bash_kernel" author = "Thomas Kluyver" author-email = "thomas@kluyver.me.uk" home-page = "https://github.com/takluyver/bash_kernel" -requires = ["pexpect (>=4.0)"] +requires = ["pexpect (>=4.0)", "ipykernel"] description-file = "README.rst" classifiers = [ "Framework :: IPython",