File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -105,12 +105,13 @@ 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" )
110+ # Set TERM_PROGRAM and TERM_PROGAM_VERSION. See <https://github.com/takluyver/bash_kernel/issues/117#issuecomment-1032738154>
111+ self .bashwrapper .run_command (f"export TERM_PROGRAM='jupyter_bash_kernel'; export TERM_PROGRAM_VERSION='{ __version__ } ';" )
108112 # Register Bash function to write image data to temporary file
109113 self .bashwrapper .run_command (image_setup_cmd )
110- # Set TERM_PROGRAM and TERM_PROGAM_VERSION. See https://github.com/takluyver/bash_kernel/issues/117#issuecomment-1032738154
111- self .bashwrapper .run_command (f"export TERM_PROGRAM='jupyter_bash_kernel'; export TERM_PROGRAM_VERSION='{ __version__ } ';" )
112- # Disable bracketed paste (see https://github.com/takluyver/bash_kernel/issues/117)
113- self .bashwrapper .run_command ("(bind 'set enable-bracketed-paste off' || true) >/dev/null 2>&1" )
114+
114115
115116 def process_output (self , output ):
116117 if not self .silent :
You can’t perform that action at this time.
0 commit comments