##// END OF EJS Templates
Don't make it configurable
Jessica B. Hamrick -
Show More
@@ -26,11 +26,6 b' class ExecutePreprocessor(Preprocessor):'
26 help="The time to wait (in seconds) for output from executions."
26 help="The time to wait (in seconds) for output from executions."
27 )
27 )
28
28
29 allow_stdin = Bool(
30 False, config=True,
31 help="Whether stdin should be enabled when executing cells"
32 )
33
34 extra_arguments = List(Unicode)
29 extra_arguments = List(Unicode)
35
30
36 def preprocess(self, nb, resources):
31 def preprocess(self, nb, resources):
@@ -41,7 +36,7 b' class ExecutePreprocessor(Preprocessor):'
41 extra_arguments=self.extra_arguments,
36 extra_arguments=self.extra_arguments,
42 stderr=open(os.devnull, 'w')) as kc:
37 stderr=open(os.devnull, 'w')) as kc:
43 self.kc = kc
38 self.kc = kc
44 self.kc.allow_stdin = self.allow_stdin
39 self.kc.allow_stdin = False
45 nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
40 nb, resources = super(ExecutePreprocessor, self).preprocess(nb, resources)
46 return nb, resources
41 return nb, resources
47
42
General Comments 0
You need to be logged in to leave comments. Login now