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