Skip to content

Commit 1e805d4

Browse files
authored
Merge pull request #120 from kdm9/patch-1
Fixes for modern readline
2 parents 68c922d + a4c81c9 commit 1e805d4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bash_kernel/kernel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,12 @@ def _start_bash(self):
105105
finally:
106106
signal.signal(signal.SIGINT, sig)
107107

108+
# Disable bracketed paste (see <https://github.com/takluyver/bash_kernel/issues/117>)
109+
self.bashwrapper.run_command("bind 'set enable-bracketed-paste off' >/dev/null 2>&1 || true")
108110
# Register Bash function to write image data to temporary file
109111
self.bashwrapper.run_command(image_setup_cmd)
110112

113+
111114
def process_output(self, output):
112115
if not self.silent:
113116
image_filenames, output = extract_image_filenames(output)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module = "bash_kernel"
77
author = "Thomas Kluyver"
88
author-email = "thomas@kluyver.me.uk"
99
home-page = "https://github.com/takluyver/bash_kernel"
10-
requires = ["pexpect (>=4.0)"]
10+
requires = ["pexpect (>=4.0)", "ipykernel"]
1111
description-file = "README.rst"
1212
classifiers = [
1313
"Framework :: IPython",

0 commit comments

Comments
 (0)