From 55c60c43e07838482d2fa5f6366008d9682c48d0 Mon Sep 17 00:00:00 2001 From: TylerAnderson22 <53876915+TylerAnderson22@users.noreply.github.com> Date: Thu, 16 Dec 2021 13:53:51 -0500 Subject: [PATCH 1/2] Fix typo above ExecutePreprocessor --- nbconvert/preprocessors/execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbconvert/preprocessors/execute.py b/nbconvert/preprocessors/execute.py index 2b9344ad1..9a73920e6 100644 --- a/nbconvert/preprocessors/execute.py +++ b/nbconvert/preprocessors/execute.py @@ -21,7 +21,7 @@ def executenb(*args, **kwargs): # We inherit from both classes to allow for traitlets to resolve as they did pre-6.0. -# This unfortunatley makes for some ugliness around initialization as NotebookClient +# This unfortunately makes for some ugliness around initialization as NotebookClient # assumes it's a constructed class with a nb object that we have to hack around. class ExecutePreprocessor(Preprocessor, NotebookClient): """ From 688765bef2e2b57356baad24c969922b88142298 Mon Sep 17 00:00:00 2001 From: TylerAnderson22 <53876915+TylerAnderson22@users.noreply.github.com> Date: Thu, 16 Dec 2021 13:57:23 -0500 Subject: [PATCH 2/2] Fix another typo --- nbconvert/preprocessors/execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbconvert/preprocessors/execute.py b/nbconvert/preprocessors/execute.py index 9a73920e6..5c7ee7e96 100644 --- a/nbconvert/preprocessors/execute.py +++ b/nbconvert/preprocessors/execute.py @@ -44,7 +44,7 @@ def preprocess(self, nb, resources=None, km=None): The input argument *nb* is modified in-place. Note that this function recalls NotebookClient.__init__, which may look wrong. - However since the preprocess call acts line an init on exeuction state it's expected. + However since the preprocess call acts line an init on execution state it's expected. Therefore, we need to capture it here again to properly reset because traitlet assignments are not passed. There is a risk if traitlets apply any side effects for dual init.