Show More
@@ -29,7 +29,9 b' class ExecutePreprocessor(Preprocessor):' | |||||
29 | extra_arguments = List(Unicode) |
|
29 | extra_arguments = List(Unicode) | |
30 |
|
30 | |||
31 | def preprocess(self, nb, resources): |
|
31 | def preprocess(self, nb, resources): | |
32 |
path = resources.get('metadata', {}).get('path', |
|
32 | path = resources.get('metadata', {}).get('path', '') | |
|
33 | if path == '': | |||
|
34 | path = None | |||
33 |
|
35 | |||
34 | from IPython.kernel import run_kernel |
|
36 | from IPython.kernel import run_kernel | |
35 | kernel_name = nb.metadata.get('kernelspec', {}).get('name', 'python') |
|
37 | kernel_name = nb.metadata.get('kernelspec', {}).get('name', 'python') |
General Comments 0
You need to be logged in to leave comments.
Login now