Skip to content
Browse files

Merge pull request #1021 from 00Kai0/master

kwargs is used when km is exist, but not defind in func.
  • Loading branch information
MSeal committed May 12, 2019
2 parents e9d82f4 + 4140b66 commit 8af6aac0fe9f9096c1886a90449cbd66e6a9f835
Showing with 3 additions and 2 deletions.
  1. +3 −2 nbconvert/preprocessors/
@@ -282,7 +282,7 @@ def start_new_kernel(self, **kwargs):
return km, kc

def setup_preprocessor(self, nb, resources, km=None):
def setup_preprocessor(self, nb, resources, km=None, **kwargs):
Context manager for setting up the class to execute a notebook.
@@ -321,7 +321,8 @@ def setup_preprocessor(self, nb, resources, km=None):
self.widget_buffers = {}

if km is None:, self.kc = self.start_new_kernel(cwd=path)
kwargs["cwd"] = path, self.kc = self.start_new_kernel(**kwargs)
# Yielding unbound args for more easier understanding and downstream consumption
yield nb,, self.kc

0 comments on commit 8af6aac

Please sign in to comment.
You can’t perform that action at this time.