Show More
@@ -50,6 +50,7 b' class ExecutePreprocessor(Preprocessor):' | |||||
50 | def preprocess(self, nb, resources): |
|
50 | def preprocess(self, nb, resources): | |
51 | from IPython.kernel import run_kernel |
|
51 | from IPython.kernel import run_kernel | |
52 | kernel_name = nb.metadata.get('kernelspec', {}).get('name', 'python') |
|
52 | kernel_name = nb.metadata.get('kernelspec', {}).get('name', 'python') | |
|
53 | self.log.info("Executing notebook with kernel: %s" % kernel_name) | |||
53 | with run_kernel(kernel_name=kernel_name, |
|
54 | with run_kernel(kernel_name=kernel_name, | |
54 | extra_arguments=self.extra_arguments, |
|
55 | extra_arguments=self.extra_arguments, | |
55 | stderr=open(os.devnull, 'w')) as kc: |
|
56 | stderr=open(os.devnull, 'w')) as kc: |
General Comments 0
You need to be logged in to leave comments.
Login now