diff --git a/setup.py b/setup.py index 3a580a01..42e0f89b 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ install_requires=[ 'docutils', 'jinja2', - 'nbconvert!=5.4', + 'nbconvert>=5.3,!=5.4', 'traitlets>=5', 'nbformat', 'sphinx>=1.8', diff --git a/src/nbsphinx/__init__.py b/src/nbsphinx/__init__.py index 5f547bc3..f490def3 100644 --- a/src/nbsphinx/__init__.py +++ b/src/nbsphinx/__init__.py @@ -616,7 +616,7 @@ def parse(self, inputstring, document): try: rststring, resources = exporter.from_notebook_node(nb, resources) - except nbconvert.preprocessors.execute.CellExecutionError as e: + except nbconvert.preprocessors.CellExecutionError as e: lines = str(e).split('\n') lines[0] = 'CellExecutionError in {}:'.format( env.doc2path(env.docname, base=None))