Skip to content

Commit

Permalink
Fix typos in execute.py (#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerAnderson22 committed Dec 28, 2021
1 parent 88ee3d3 commit cf7c532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbconvert/preprocessors/execute.py
Expand Up @@ -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):
"""
Expand All @@ -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.
Expand Down

0 comments on commit cf7c532

Please sign in to comment.