##// END OF EJS Templates
execute_on_complete_input...
MinRK -
Show More
@@ -95,10 +95,10 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):'
95 non-positive number disables text truncation (not recommended).
95 non-positive number disables text truncation (not recommended).
96 """
96 """
97 )
97 )
98 check_complete = Bool(True, config=True,
98 execute_on_complete_input = Bool(True, config=True,
99 help="""Whether to check completion and attempt to automatically execute
99 help="""Whether to automatically execute on syntactically complete input.
100 on complete input.
100
101 If False, Shift-Enter is required to execute each input.
101 If False, Shift-Enter is required to submit each execution.
102 Disabling this is mainly useful for non-Python kernels,
102 Disabling this is mainly useful for non-Python kernels,
103 where the completion check would be wrong.
103 where the completion check would be wrong.
104 """
104 """
@@ -623,12 +623,12 b' class ConsoleWidget(LoggingConfigurable, QtGui.QWidget):'
623 self.input_buffer = source
623 self.input_buffer = source
624
624
625 # Execute the source or show a continuation prompt if it is incomplete.
625 # Execute the source or show a continuation prompt if it is incomplete.
626 if self.check_complete:
626 if self.execute_on_complete_input:
627 complete = self._is_complete(source, interactive)
627 complete = self._is_complete(source, interactive)
628 else:
628 else:
629 complete = not interactive
629 complete = not interactive
630 if hidden:
630 if hidden:
631 if complete or not self.check_complete:
631 if complete or not self.execute_on_complete_input:
632 self._execute(source, hidden)
632 self._execute(source, hidden)
633 else:
633 else:
634 error = 'Incomplete noninteractive input: "%s"'
634 error = 'Incomplete noninteractive input: "%s"'
General Comments 0
You need to be logged in to leave comments. Login now